('2019-08-20 11:39:13','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										\'38.4\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3.2\',\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\'');
INSERT INTO `audittrail` VALUES ('2019-08-20 11:39:13','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27012\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RDS x 3.2 @ 12\',\n											\'-38.4\')'),('2019-08-20 11:39:13','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.25,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27514\'\n							AND orderlineno = \'1\''),('2019-08-20 11:39:13','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4.25\n						WHERE locstock.stockid = \'RS\'\n						AND loccode = \'AN\''),('2019-08-20 11:39:13','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														\'27012\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27514\',\n														\'-4.25\',\n														\'0\',\n														\'0.0000\',\n														\'-19880.54\',\n														\'\' )'),('2019-08-20 11:39:13','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56739\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:39:13','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-20 11:39:13','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27012\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RS x 4.25 @ 12\',\n											\'-51\')'),('2019-08-20 11:39:13','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.7,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27514\'\n							AND orderlineno = \'2\''),('2019-08-20 11:39:13','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.7\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-20 11:39:13','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														\'27012\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM013\',\n														\'41\',\n														\'16.95\',\n														\'93\',\n														\'27514\',\n														\'-3.7\',\n														\'0\',\n														\'0.0000\',\n														\'-9592.781\',\n														\'\' )'),('2019-08-20 11:39:13','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56740\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:39:13','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										\'62.72\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3.7\',\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-20 11:39:13','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27012\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SF500G x 3.7 @ 16.95\',\n											\'-62.72\')'),('2019-08-20 11:39:13','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2.8,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27514\'\n							AND orderlineno = \'3\''),('2019-08-20 11:39:13','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2.8\n						WHERE locstock.stockid = \'SS\'\n						AND loccode = \'AN\''),('2019-08-20 11:39:13','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														\'27012\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM013\',\n														\'41\',\n														\'17.24\',\n														\'93\',\n														\'27514\',\n														\'-2.8\',\n														\'0\',\n														\'0.0000\',\n														\'-6712\',\n														\'\' )'),('2019-08-20 11:39:13','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56741\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:39:13','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										\'48.27\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'2.8\',\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-20 11:39:13','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27012\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SS x 2.8 @ 17.24\',\n											\'-48.27\')'),('2019-08-20 11:39:13','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6.15,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27514\'\n							AND orderlineno = \'4\''),('2019-08-20 11:39:13','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 6.15\n						WHERE locstock.stockid = \'BTS\'\n						AND loccode = \'AN\''),('2019-08-20 11:39:13','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														\'27012\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27514\',\n														\'-6.15\',\n														\'0\',\n														\'0.0000\',\n														\'-5513.61\',\n														\'\' )'),('2019-08-20 11:39:13','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56742\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:39:13','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										\'86.1\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'6.15\',\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-20 11:39:13','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27012\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BTS x 6.15 @ 14\',\n											\'-86.1\')'),('2019-08-20 11:39:13','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27012\',\n										\'2019-08-21\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'312.27\')'),('2019-08-20 11:39:13','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27012\',\n											\'2019-08-21\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-25.78\')'),('2019-08-20 11:39:13','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000002842170943040401\n								WHERE counterindex = \'122271\''),('2019-08-20 11:41:29','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								\'27515\',\n								\'TM058\',\n								\'J012\',\n								\'1044suva\',\n								\'\',\n								\'2019-08-20 11:41\',\n								\'DE\',\n								\'10\',\n								\'JACKS RESTAURANT\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-20 11:41:29','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					\'27515\',\n					\'LM\',\n					\'19\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:41:36','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27013\')\n			WHERE orderno= \'27515\''),('2019-08-20 11:41: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									\'27013\',\n									10,\n									\'TM058\',\n									\'J012\',\n									\'2019-08-21\',\n									\'2019-08-20 11-41-36\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27515\',\n									\'190\',\n									\'17.1\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-20 11:41:36','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34124\',\n									\'1\',\n									\'17.1\')'),('2019-08-20 11:41:36','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27515\'\n							AND orderlineno = \'0\''),('2019-08-20 11:41:36','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-20 11:41: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 (\'LM\',\n														10,\n														\'27013\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM058\',\n														\'J012\',\n														\'19\',\n														\'93\',\n														\'27515\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-32108.78\',\n														\'\' )'),('2019-08-20 11:41:36','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56743\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:41: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										\'190\',\n										\'0\',\n										\'TM058\',\n										\'J012\',\n										\'10\',\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 = \'TM058\'\n								AND custbranch.branchcode=\'J012\''),('2019-08-20 11:41:36','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27013\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM058 - LM x 10 @ 19\',\n											\'-190\')'),('2019-08-20 11:41:36','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27013\',\n										\'2019-08-21\',\n										\'93\',\n										\'1100\',\n										\'TM058\',\n										\'207.1\')'),('2019-08-20 11:41:36','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27013\',\n											\'2019-08-21\',\n											\'93\',\n											\'2300\',\n											\'TM058\',\n											\'-17.1\')'),('2019-08-20 12:18:33','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								\'27516\',\n								\'TM009\',\n								\'30\',\n								\'16027lp3\',\n								\'\',\n								\'2019-08-20 12:18\',\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-21\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-20 12:18:33','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					\'27516\',\n					\'LPP\',\n					\'12.66\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 12:18:39','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27014\')\n			WHERE orderno= \'27516\''),('2019-08-20 12:18:39','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									\'27014\',\n									10,\n									\'TM009\',\n									\'30\',\n									\'2019-08-21\',\n									\'2019-08-20 12-18-39\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27516\',\n									\'506.4\',\n									\'45.58\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-20 12:18:39','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34125\',\n									\'1\',\n									\'45.576\')'),('2019-08-20 12:18:39','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27516\'\n							AND orderlineno = \'0\''),('2019-08-20 12:18:39','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LPP\'\n						AND loccode = \'AN\''),('2019-08-20 12:18:39','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														\'27014\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM009\',\n														\'30\',\n														\'12.66\',\n														\'93\',\n														\'27516\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-59003.52\',\n														\'\' )'),('2019-08-20 12:18:39','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56744\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 12:18:39','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-20 12:18:39','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27014\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM009 - LPP x 40 @ 12.66\',\n											\'-506.4\')'),('2019-08-20 12:18:39','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27014\',\n										\'2019-08-21\',\n										\'93\',\n										\'1100\',\n										\'TM009\',\n										\'551.98\')'),('2019-08-20 12:18:39','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27014\',\n											\'2019-08-21\',\n											\'93\',\n											\'2300\',\n											\'TM009\',\n											\'-45.58\')'),('2019-08-20 12:18:39','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000004263256414560601\n								WHERE counterindex = \'122281\''),('2019-08-20 12:20:35','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								\'27517\',\n								\'TM013\',\n								\'41\',\n								\'kspn00458\',\n								\'\',\n								\'2019-08-20 12:20\',\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-21\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-20 12:20:35','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					\'27517\',\n					\'LM\',\n					\'18.34\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 12:20:35','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					\'27517\',\n					\'BF\',\n					\'14\',\n					\'10\',\n					\'0\',\n					\'diced\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 12:20:43','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27015\')\n			WHERE orderno= \'27517\''),('2019-08-20 12:20: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									\'27015\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-21\',\n									\'2019-08-20 12-20-43\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27517\',\n									\'506.8\',\n									\'45.61\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-20 12:20:43','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34126\',\n									\'1\',\n									\'45.612\')'),('2019-08-20 12:20:43','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27517\'\n							AND orderlineno = \'0\''),('2019-08-20 12:20:43','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-20 12:20: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 (\'LM\',\n														10,\n														\'27015\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM013\',\n														\'41\',\n														\'18.34\',\n														\'93\',\n														\'27517\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-32128.78\',\n														\'\' )'),('2019-08-20 12:20:43','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56745\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 12:20: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										\'366.8\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'20\',\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 = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-20 12:20:43','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27015\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM013 - LM x 20 @ 18.34\',\n											\'-366.8\')'),('2019-08-20 12:20:43','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27517\'\n							AND orderlineno = \'1\''),('2019-08-20 12:20:43','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'BF\'\n						AND loccode = \'AN\''),('2019-08-20 12:20: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 (\'BF\',\n														10,\n														\'27015\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27517\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-6562.71\',\n														\'diced\' )'),('2019-08-20 12:20:43','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56746\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 12:20: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										\'140\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'10\',\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-20 12:20:43','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27015\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BF x 10 @ 14\',\n											\'-140\')'),('2019-08-20 12:20:43','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27015\',\n										\'2019-08-21\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'552.41\')'),('2019-08-20 12:20:43','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27015\',\n											\'2019-08-21\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-45.61\')'),('2019-08-20 12:20:43','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000004263256414560601\n								WHERE counterindex = \'122284\''),('2019-08-20 12:32: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								\'27518\',\n								\'TM074\',\n								\'P001\',\n								\'HARBOUR CENTER\',\n								\'\',\n								\'2019-08-20 12:32\',\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-21\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-20 12:32: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					\'27518\',\n					\'FF\',\n					\'17.00\',\n					\'28.05\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 12:32: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					\'27518\',\n					\'MBT\',\n					\'9.50\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 12:32: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					\'27518\',\n					\'CP\',\n					\'18.81\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 12:32:22','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27016\')\n			WHERE orderno= \'27518\''),('2019-08-20 12:32:22','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									\'27016\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-21\',\n									\'2019-08-20 12-32-22\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27518\',\n									\'618.4\',\n									\'51.38\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-20 12:32:22','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34127\',\n									\'1\',\n									\'51.381\')'),('2019-08-20 12:32:22','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 28.05,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27518\'\n							AND orderlineno = \'0\''),('2019-08-20 12:32:22','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 28.05\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-20 12:32:22','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														\'27016\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM074\',\n														\'P001\',\n														\'17\',\n														\'93\',\n														\'27518\',\n														\'-28.05\',\n														\'0\',\n														\'0.0000\',\n														\'-21127.27\',\n														\'marlin\' )'),('2019-08-20 12:32:22','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56747\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 12:32:22','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										\'476.85\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'28.05\',\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-20 12:32:22','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27016\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM074 - FF x 28.05 @ 17\',\n											\'-476.85\')'),('2019-08-20 12:32:22','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27518\'\n							AND orderlineno = \'1\''),('2019-08-20 12:32:22','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-20 12:32:22','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														\'27016\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27518\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-7282.6\',\n														\'\' )'),('2019-08-20 12:32:22','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56748\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-20 12:32:22','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-20 12:32:22','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27016\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 5 @ 9.5\',\n											\'-47.5\')'),('2019-08-20 12:32:22','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27518\'\n							AND orderlineno = \'2\''),('2019-08-20 12:32:22','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-20 12:32:22','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														\'27016\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27518\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-306263.65\',\n														\'\' )'),('2019-08-20 12:32:22','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56749\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 12:32:22','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-20 12:32:22','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27016\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 5 @ 18.81\',\n											\'-94.05\')'),('2019-08-20 12:32:22','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27016\',\n										\'2019-08-21\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'669.78\')'),('2019-08-20 12:32:22','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27016\',\n											\'2019-08-21\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-51.38\')'),('2019-08-20 12:47: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								\'27519\',\n								\'TM087\',\n								\'S051\',\n								\'12342\',\n								\'\',\n								\'2019-08-20 12:47\',\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-21\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-20 12:47: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					\'27519\',\n					\'CHICKEN\',\n					\'18.00\',\n					\'22.5\',\n					\'0\',\n					\'supreme\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 12:47:44','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27017\')\n			WHERE orderno= \'27519\''),('2019-08-20 12:47:44','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									\'27017\',\n									10,\n									\'TM087\',\n									\'S051\',\n									\'2019-08-21\',\n									\'2019-08-20 12-47-44\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27519\',\n									\'405\',\n									\'36.45\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-20 12:47:44','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34128\',\n									\'1\',\n									\'36.45\')'),('2019-08-20 12:47:44','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 22.5,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27519\'\n							AND orderlineno = \'0\''),('2019-08-20 12:47:44','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 22.5\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-20 12:47:44','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														\'27017\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM087\',\n														\'S051\',\n														\'18\',\n														\'93\',\n														\'27519\',\n														\'-22.5\',\n														\'0\',\n														\'0.0000\',\n														\'-87225.27\',\n														\'supreme\' )'),('2019-08-20 12:47:44','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56750\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 12:47:44','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										\'405\',\n										\'0\',\n										\'TM087\',\n										\'S051\',\n										\'22.5\',\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 = \'TM087\'\n								AND custbranch.branchcode=\'S051\''),('2019-08-20 12:47:44','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27017\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM087 - CHICKEN x 22.5 @ 18\',\n											\'-405\')'),('2019-08-20 12:47:44','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27017\',\n										\'2019-08-21\',\n										\'93\',\n										\'1100\',\n										\'TM087\',\n										\'441.45\')'),('2019-08-20 12:47:44','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27017\',\n											\'2019-08-21\',\n											\'93\',\n											\'2300\',\n											\'TM087\',\n											\'-36.45\')'),('2019-08-20 12:51: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								\'27520\',\n								\'TM002\',\n								\'1\',\n								\'18757\',\n								\'\',\n								\'2019-08-20 12:51\',\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-21\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-20 12:51: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					\'27520\',\n					\'CHICKEN\',\n					\'8.5\',\n					\'30\',\n					\'0\',\n					\'wings\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 12:51: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					\'27520\',\n					\'LSP\',\n					\'8.50\',\n					\'30\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 12:51:54','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27018\')\n			WHERE orderno= \'27520\''),('2019-08-20 12:51: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									\'27018\',\n									10,\n									\'TM002\',\n									\'1\',\n									\'2019-08-21\',\n									\'2019-08-20 12-51-54\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27520\',\n									\'510\',\n									\'45.9\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-20 12:51:54','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34129\',\n									\'1\',\n									\'45.9\')'),('2019-08-20 12:51:54','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27520\'\n							AND orderlineno = \'0\''),('2019-08-20 12:51:54','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 30\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-20 12:51: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 (\'CHICKEN\',\n														10,\n														\'27018\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM002\',\n														\'1\',\n														\'8.5\',\n														\'93\',\n														\'27520\',\n														\'-30\',\n														\'0\',\n														\'0.0000\',\n														\'-87255.27\',\n														\'wings\' )'),('2019-08-20 12:51:54','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56751\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 12:51: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										\'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-20 12:51:54','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27018\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM002 - CHICKEN x 30 @ 8.5\',\n											\'-255\')'),('2019-08-20 12:51:54','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27520\'\n							AND orderlineno = \'1\''),('2019-08-20 12:51:54','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 30\n						WHERE locstock.stockid = \'LSP\'\n						AND loccode = \'AN\''),('2019-08-20 12:51: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 (\'LSP\',\n														10,\n														\'27018\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM002\',\n														\'1\',\n														\'8.5\',\n														\'93\',\n														\'27520\',\n														\'-30\',\n														\'0\',\n														\'0.0000\',\n														\'-39816.34\',\n														\'\' )'),('2019-08-20 12:51:54','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56752\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 12:51: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										\'255\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'30\',\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 = \'TM002\'\n								AND custbranch.branchcode=\'1\''),('2019-08-20 12:51:54','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27018\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM002 - LSP x 30 @ 8.5\',\n											\'-255\')'),('2019-08-20 12:51:54','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27018\',\n										\'2019-08-21\',\n										\'93\',\n										\'1100\',\n										\'TM002\',\n										\'555.9\')'),('2019-08-20 12:51:54','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27018\',\n											\'2019-08-21\',\n											\'93\',\n											\'2300\',\n											\'TM002\',\n											\'-45.9\')'),('2019-08-20 12:51:54','zaabed','UPDATE gltrans SET amount = amount - -0.000000000000021316282072803006\n								WHERE counterindex = \'122296\''),('2019-08-21 08:40:53','jhairud','UPDATE config SET confvalue = \'2019-08-21\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-21 08:54:17','jhairud','DELETE FROM custallocns WHERE id = \'30110\''),('2019-08-21 08:54:17','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-21\',\n								\'9.29\',\n								\'34045\',\n								\'33222\'\n							)'),('2019-08-21 08:54:17','jhairud','DELETE FROM custallocns WHERE id = \'30107\''),('2019-08-21 08:54:17','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-21\',\n								\'141.48\',\n								\'34045\',\n								\'31981\'\n							)'),('2019-08-21 08:54:17','jhairud','DELETE FROM custallocns WHERE id = \'30108\''),('2019-08-21 08:54:17','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-21\',\n								\'17.1\',\n								\'34045\',\n								\'33220\'\n							)'),('2019-08-21 08:54:17','jhairud','DELETE FROM custallocns WHERE id = \'30109\''),('2019-08-21 08:54:17','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-21\',\n								\'8.55\',\n								\'34045\',\n								\'33221\'\n							)'),('2019-08-21 08:54:17','jhairud','DELETE FROM custallocns WHERE id = \'30111\''),('2019-08-21 08:54:17','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-21\',\n								\'103.55\',\n								\'34045\',\n								\'33534\'\n							)'),('2019-08-21 08:54:17','jhairud','DELETE FROM custallocns WHERE id = \'30112\''),('2019-08-21 08:54:17','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-21\',\n								\'58.62\',\n								\'34045\',\n								\'33572\'\n							)'),('2019-08-21 08:54:17','jhairud','DELETE FROM custallocns WHERE id = \'30113\''),('2019-08-21 08:54:17','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-21\',\n								\'128.46\',\n								\'34045\',\n								\'33580\'\n							)'),('2019-08-21 08:54:17','jhairud','DELETE FROM custallocns WHERE id = \'30114\''),('2019-08-21 08:54:17','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-21\',\n								\'712.78\',\n								\'34045\',\n								\'33619\'\n							)'),('2019-08-21 08:54:17','jhairud','DELETE FROM custallocns WHERE id = \'30115\''),('2019-08-21 08:54:17','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-21\',\n								\'731.84\',\n								\'34045\',\n								\'33685\'\n							)'),('2019-08-21 09:32:19','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'184.97\'							    \n							WHERE transno = \'26736\'\n							AND type = \'10\'\n			'),('2019-08-21 10:34:18','jhairud','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								\'27521\',\n								\'TM020\',\n								\'R010\',\n								\'PO19102-031805\',\n								\'QEB\',\n								\'2019-08-21 10:34\',\n								\'DE\',\n								\'10\',\n								\'RFMF (FIJI MILITARY FORCES)\',\n								\'SUVA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-21 10:34:18','jhairud','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					\'27521\',\n					\'CHICKEN\',\n					\'8.25\',\n					\'200\',\n					\'0\',\n					\'whole chicken\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 10:34:18','jhairud','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					\'27521\',\n					\'CP\',\n					\'15.41\',\n					\'100\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 10:34:41','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27019\')\n			WHERE orderno= \'27521\''),('2019-08-21 10:34:41','jhairud','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									\'27019\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-08-22\',\n									\'2019-08-21 10-34-41\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27521\',\n									\'3191\',\n									\'287.19\',\n									\'0\',\n									\'1\',\n									\'PO19102-031805 QEB\',\n									\'10\',\n									\'PO19102-031805\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-21 10:34:41','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34130\',\n									\'1\',\n									\'287.19\')'),('2019-08-21 10:34:41','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 200,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27521\'\n							AND orderlineno = \'0\''),('2019-08-21 10:34:41','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 200\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-21 10:34:41','jhairud','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														\'27019\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'93\',\n														\'27521\',\n														\'-200\',\n														\'0\',\n														\'0.0000\',\n														\'-87455.27\',\n														\'whole chicken\' )'),('2019-08-21 10:34:41','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56753\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 10:34:41','jhairud','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										\'1650\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'200\',\n										\'0\',\n										\'CHICKEN\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHICKEN\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-21 10:34:41','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27019\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM020 - CHICKEN x 200 @ 8.25\',\n											\'-1650\')'),('2019-08-21 10:34:41','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 100,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27521\'\n							AND orderlineno = \'1\''),('2019-08-21 10:34:41','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 100\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-21 10:34:41','jhairud','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														\'27019\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM020\',\n														\'R010\',\n														\'15.41\',\n														\'93\',\n														\'27521\',\n														\'-100\',\n														\'0\',\n														\'0.0000\',\n														\'-306363.65\',\n														\'\' )'),('2019-08-21 10:34:41','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56754\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 10:34:41','jhairud','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										\'1541\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'100\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-21 10:34:41','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27019\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM020 - CP x 100 @ 15.41\',\n											\'-1541\')'),('2019-08-21 10:34:41','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27019\',\n										\'2019-08-22\',\n										\'93\',\n										\'1100\',\n										\'TM020\',\n										\'3478.19\')'),('2019-08-21 10:34:41','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27019\',\n											\'2019-08-22\',\n											\'93\',\n											\'2300\',\n											\'TM020\',\n											\'-287.19\')'),('2019-08-21 10:41:48','jhairud','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								\'27522\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-08-21 10:41\',\n								\'DE\',\n								\'10\',\n								\'CURRY HOUSE\',\n								\'SUVA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-21 10:41:48','jhairud','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					\'27522\',\n					\'CP\',\n					\'18.81\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 10:42:01','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27020\')\n			WHERE orderno= \'27522\''),('2019-08-21 10:42:01','jhairud','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									\'27020\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-22\',\n									\'2019-08-21 10-42-01\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27522\',\n									\'752.4\',\n									\'67.72\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-21 10:42:01','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34131\',\n									\'1\',\n									\'67.716\')'),('2019-08-21 10:42:01','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27522\'\n							AND orderlineno = \'0\''),('2019-08-21 10:42:01','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-21 10:42:01','jhairud','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														\'27020\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'93\',\n														\'27522\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-306403.65\',\n														\'\' )'),('2019-08-21 10:42:01','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56755\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 10:42:01','jhairud','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										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-21 10:42:01','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27020\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM044 - CP x 40 @ 18.81\',\n											\'-752.4\')'),('2019-08-21 10:42:01','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27020\',\n										\'2019-08-22\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'820.12\')'),('2019-08-21 10:42:01','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27020\',\n											\'2019-08-22\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-67.72\')'),('2019-08-21 10:44:58','jhairud','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								\'27523\',\n								\'TM057\',\n								\'I002\',\n								\'24317\',\n								\'\',\n								\'2019-08-21 10:44\',\n								\'DE\',\n								\'10\',\n								\'INTERNATIONAL SCHOOL SUVA\',\n								\'Laucala Beach\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-21 10:44:58','jhairud','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					\'27523\',\n					\'BN\',\n					\'17.89\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 10:44:58','jhairud','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					\'27523\',\n					\'BS500G\',\n					\'12.85\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 10:45:15','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27021\')\n			WHERE orderno= \'27523\''),('2019-08-21 10:45:15','jhairud','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									\'27021\',\n									10,\n									\'TM057\',\n									\'I002\',\n									\'2019-08-22\',\n									\'2019-08-21 10-45-15\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27523\',\n									\'371.65\',\n									\'16.1\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'24317\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-21 10:45:15','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34132\',\n									\'1\',\n									\'16.101\')'),('2019-08-21 10:45:15','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27523\'\n							AND orderlineno = \'0\''),('2019-08-21 10:45:15','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'BN\'\n						AND loccode = \'AN\''),('2019-08-21 10:45:15','jhairud','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 (\'BN\',\n														10,\n														\'27021\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM057\',\n														\'I002\',\n														\'17.89\',\n														\'93\',\n														\'27523\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-44118.061\',\n														\'\' )'),('2019-08-21 10:45:15','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56756\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 10:45:15','jhairud','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										\'178.9\',\n										\'0\',\n										\'TM057\',\n										\'I002\',\n										\'10\',\n										\'0\',\n										\'BN\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BN\'\n								AND custbranch.debtorno = \'TM057\'\n								AND custbranch.branchcode=\'I002\''),('2019-08-21 10:45:15','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27021\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM057 - BN x 10 @ 17.89\',\n											\'-178.9\')'),('2019-08-21 10:45:15','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27523\'\n							AND orderlineno = \'1\''),('2019-08-21 10:45:15','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'BS500G\'\n						AND loccode = \'AN\''),('2019-08-21 10:45:15','jhairud','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														\'27021\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM057\',\n														\'I002\',\n														\'12.85\',\n														\'93\',\n														\'27523\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-2291.5\',\n														\'\' )'),('2019-08-21 10:45:15','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56757\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-21 10:45:15','jhairud','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										\'192.75\',\n										\'0\',\n										\'TM057\',\n										\'I002\',\n										\'15\',\n										\'0\',\n										\'BS500G\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BS500G\'\n								AND custbranch.debtorno = \'TM057\'\n								AND custbranch.branchcode=\'I002\''),('2019-08-21 10:45:15','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27021\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM057 - BS500G x 15 @ 12.85\',\n											\'-192.75\')'),('2019-08-21 10:45:15','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27021\',\n										\'2019-08-22\',\n										\'93\',\n										\'1100\',\n										\'TM057\',\n										\'387.75\')'),('2019-08-21 10:45:15','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27021\',\n											\'2019-08-22\',\n											\'93\',\n											\'2300\',\n											\'TM057\',\n											\'-16.1\')'),('2019-08-21 10:45:15','jhairud','UPDATE gltrans SET amount = amount - 0.000000000000021316282072803006\n								WHERE counterindex = \'122307\''),('2019-08-21 11:25:57','jhairud','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								\'27524\',\n								\'TM074\',\n								\'P001\',\n								\'\',\n								\'\',\n								\'2019-08-21 11:25\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'Sports City\',\n								\'Raiwaqa\',\n								\'Suva\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-21 11:25:57','jhairud','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					\'27524\',\n					\'MBT\',\n					\'9.50\',\n					\'15\',\n					\'0\',\n					\'BEEF KALBEE\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 11:25:57','jhairud','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					\'27524\',\n					\'SF500G\',\n					\'16.40\',\n					\'3.4\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 11:25:57','jhairud','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					\'27524\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 11:26:51','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27022\')\n			WHERE orderno= \'27524\''),('2019-08-21 11:26:51','jhairud','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									\'27022\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-22\',\n									\'2019-08-21 11-26-51\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27524\',\n									\'574.46\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'Sports City\\r\\nRaiwaqa\\r\\nSuva\',\n									\'10\',\n									\'Sports City\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-21 11:26:51','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34133\',\n									\'1\',\n									\'33.858\')'),('2019-08-21 11:26:51','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27524\'\n							AND orderlineno = \'0\''),('2019-08-21 11:26:51','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-21 11:26:51','jhairud','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														\'27022\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27524\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-7297.6\',\n														\'BEEF KALBEE\' )'),('2019-08-21 11:26:51','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56758\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-21 11:26:51','jhairud','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										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-21 11:26:51','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27022\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 15 @ 9.5\',\n											\'-142.5\')'),('2019-08-21 11:26:51','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.4,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27524\'\n							AND orderlineno = \'1\''),('2019-08-21 11:26:51','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 3.4\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-21 11:26:51','jhairud','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														\'27022\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27524\',\n														\'-3.4\',\n														\'0\',\n														\'0.0000\',\n														\'-9596.181\',\n														\'\' )'),('2019-08-21 11:26:51','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56759\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-21 11:26:51','jhairud','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.76\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'3.4\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-21 11:26:51','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27022\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 3.4 @ 16.4\',\n											\'-55.76\')'),('2019-08-21 11:26:51','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27524\'\n							AND orderlineno = \'2\''),('2019-08-21 11:26:51','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-21 11:26:51','jhairud','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														\'27022\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27524\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306423.65\',\n														\'\' )'),('2019-08-21 11:26:51','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56760\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 11:26:51','jhairud','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										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-21 11:26:51','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27022\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-21 11:26:51','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27022\',\n										\'2019-08-22\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'608.32\')'),('2019-08-21 11:26:51','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27022\',\n											\'2019-08-22\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-08-21 11:59:37','jhairud','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								\'27525\',\n								\'TM020\',\n								\'R010\',\n								\'PO19102-031794\',\n								\'PO19102-031794\',\n								\'2019-08-21 11:59\',\n								\'DE\',\n								\'10\',\n								\'RFMF (FIJI MILITARY FORCES)\',\n								\'SUVA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-21 11:59:37','jhairud','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					\'27525\',\n					\'CHICKEN\',\n					\'8.25\',\n					\'100\',\n					\'0\',\n					\'whole chicken\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 11:59:37','jhairud','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					\'27525\',\n					\'CHS\',\n					\'8.25\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 11:59:37','jhairud','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					\'27525\',\n					\'ST\',\n					\'9.13\',\n					\'60\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 11:59:37','jhairud','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					\'27525\',\n					\'G1\',\n					\'8.72\',\n					\'60\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 12:01:16','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27023\')\n			WHERE orderno= \'27525\''),('2019-08-21 12:01:16','jhairud','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									\'27023\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-08-22\',\n									\'2019-08-21 12-01-16\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27525\',\n									\'2556\',\n									\'230.04\',\n									\'0\',\n									\'1\',\n									\'PO19102-031794\',\n									\'10\',\n									\'PO19102-031794\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-21 12:01:16','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34134\',\n									\'1\',\n									\'230.04\')'),('2019-08-21 12:01:16','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 100,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27525\'\n							AND orderlineno = \'0\''),('2019-08-21 12:01:16','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 100\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-21 12:01:16','jhairud','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														\'27023\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'93\',\n														\'27525\',\n														\'-100\',\n														\'0\',\n														\'0.0000\',\n														\'-87555.27\',\n														\'whole chicken\' )'),('2019-08-21 12:01:16','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56761\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 12:01:16','jhairud','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										\'825\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'100\',\n										\'0\',\n										\'CHICKEN\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHICKEN\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-21 12:01:16','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27023\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM020 - CHICKEN x 100 @ 8.25\',\n											\'-825\')'),('2019-08-21 12:01:16','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27525\'\n							AND orderlineno = \'1\''),('2019-08-21 12:01:16','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'CHS\'\n						AND loccode = \'AN\''),('2019-08-21 12:01:16','jhairud','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 (\'CHS\',\n														10,\n														\'27023\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'93\',\n														\'27525\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-25900\',\n														\'\' )'),('2019-08-21 12:01:16','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56762\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 12:01:16','jhairud','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										\'660\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'80\',\n										\'0\',\n										\'CHS\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHS\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-21 12:01:16','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27023\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM020 - CHS x 80 @ 8.25\',\n											\'-660\')'),('2019-08-21 12:01:16','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 60,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27525\'\n							AND orderlineno = \'2\''),('2019-08-21 12:01:16','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 60\n						WHERE locstock.stockid = \'ST\'\n						AND loccode = \'AN\''),('2019-08-21 12:01:16','jhairud','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 (\'ST\',\n														10,\n														\'27023\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM020\',\n														\'R010\',\n														\'9.13\',\n														\'93\',\n														\'27525\',\n														\'-60\',\n														\'0\',\n														\'0.0000\',\n														\'-5552\',\n														\'\' )'),('2019-08-21 12:01:16','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56763\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 12:01:16','jhairud','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										\'547.8\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'60\',\n										\'0\',\n										\'ST\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'ST\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-21 12:01:16','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27023\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM020 - ST x 60 @ 9.13\',\n											\'-547.8\')'),('2019-08-21 12:01:16','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 60,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27525\'\n							AND orderlineno = \'4\''),('2019-08-21 12:01:16','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 60\n						WHERE locstock.stockid = \'G1\'\n						AND loccode = \'AN\''),('2019-08-21 12:01:16','jhairud','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														\'27023\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM020\',\n														\'R010\',\n														\'8.72\',\n														\'93\',\n														\'27525\',\n														\'-60\',\n														\'0\',\n														\'0.0000\',\n														\'-29369.4\',\n														\'\' )'),('2019-08-21 12:01:16','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56764\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 12:01:16','jhairud','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										\'523.2\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'60\',\n										\'0\',\n										\'G1\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'G1\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-21 12:01:16','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27023\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM020 - G1 x 60 @ 8.72\',\n											\'-523.2\')'),('2019-08-21 12:01:16','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27023\',\n										\'2019-08-22\',\n										\'93\',\n										\'1100\',\n										\'TM020\',\n										\'2786.04\')'),('2019-08-21 12:01:16','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27023\',\n											\'2019-08-22\',\n											\'93\',\n											\'2300\',\n											\'TM020\',\n											\'-230.04\')'),('2019-08-21 12:17:34','jhairud','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								\'27526\',\n								\'TM074\',\n								\'P001\',\n								\'\',\n								\'Pizza King\\\\r\\\\nNakasi\',\n								\'2019-08-21 12:17\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'Pizza King\',\n								\'Nakasi\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-21 12:17:34','jhairud','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					\'27526\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 12:17:34','jhairud','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					\'27526\',\n					\'SF500G\',\n					\'16.40\',\n					\'6.65\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 12:17:34','jhairud','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					\'27526\',\n					\'MBT\',\n					\'9.50\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 12:18:00','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27024\')\n			WHERE orderno= \'27526\''),('2019-08-21 12:18:00','jhairud','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									\'27024\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-22\',\n									\'2019-08-21 12-18-00\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27526\',\n									\'627.76\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'Nakasi\',\n									\'10\',\n									\'Nakasi\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-21 12:18:00','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34135\',\n									\'1\',\n									\'33.858\')'),('2019-08-21 12:18:00','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27526\'\n							AND orderlineno = \'0\''),('2019-08-21 12:18:00','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-21 12:18:00','jhairud','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														\'27024\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27526\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306443.65\',\n														\'\' )'),('2019-08-21 12:18:00','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56765\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 12:18:00','jhairud','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										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-21 12:18:00','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27024\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-21 12:18:00','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6.65,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27526\'\n							AND orderlineno = \'1\''),('2019-08-21 12:18:00','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 6.65\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-21 12:18:00','jhairud','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														\'27024\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27526\',\n														\'-6.65\',\n														\'0\',\n														\'0.0000\',\n														\'-9602.831\',\n														\'\' )'),('2019-08-21 12:18:00','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56766\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-21 12:18:00','jhairud','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										\'109.06\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'6.65\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-21 12:18:00','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27024\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 6.65 @ 16.4\',\n											\'-109.06\')'),('2019-08-21 12:18:00','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27526\'\n							AND orderlineno = \'2\''),('2019-08-21 12:18:00','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-21 12:18:00','jhairud','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														\'27024\',\n														\'AN\',\n														\'2019-08-22\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27526\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-7312.6\',\n														\'\' )'),('2019-08-21 12:18:00','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56767\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-21 12:18:00','jhairud','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										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-21 12:18:00','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27024\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 15 @ 9.5\',\n											\'-142.5\')'),('2019-08-21 12:18:00','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27024\',\n										\'2019-08-22\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'661.62\')'),('2019-08-21 12:18:00','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27024\',\n											\'2019-08-22\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-08-21 13:47:32','jhairud','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								\'27527\',\n								\'106\',\n								\'99\',\n								\'PAC61244\',\n								\'PAC61244\',\n								\'2019-08-21 13:47\',\n								\'DE\',\n								\'1\',\n								\'ANZ PAC OPERATION\',\n								\'VALELEVU, NASINU\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'2019-08-22\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-21 13:47:32','jhairud','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					\'27527\',\n					\'LC\',\n					\'18.81\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 13:47:32','jhairud','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					\'27527\',\n					\'LCP\',\n					\'19.72\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-21\'\n				)'),('2019-08-21 13:48:00','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27025\')\n			WHERE orderno= \'27527\''),('2019-08-21 13:48:00','jhairud','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									\'27025\',\n									10,\n									\'106\',\n									\'99\',\n									\'2019-08-22\',\n									\'2019-08-21 13-48-00\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27527\',\n									\'1541.2\',\n									\'138.71\',\n									\'0\',\n									\'1\',\n									\'PAC61244\',\n									\'1\',\n									\'PAC61244\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-21 13:48:00','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34136\',\n									\'1\',\n									\'138.708\')'),('2019-08-21 13:48:00','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27527\'\n							AND orderlineno = \'0\''),('2019-08-21 13:48:00','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LC\'\n						AND loccode = \'AN\''),('2019-08-21 13:48:00','jhairud','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 (\'LC\',\n														10,\n														\'27025\',\n														\'AN\',\n														\'2019-08-22\',\n														\'106\',\n														\'99\',\n														\'18.81\',\n														\'93\',\n														\'27527\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-7179.98\',\n														\'\' )'),('2019-08-21 13:48:00','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56768\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 13:48:00','jhairud','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										\'106\',\n										\'99\',\n										\'40\',\n										\'0\',\n										\'LC\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LC\'\n								AND custbranch.debtorno = \'106\'\n								AND custbranch.branchcode=\'99\''),('2019-08-21 13:48:00','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27025\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'106 - LC x 40 @ 18.81\',\n											\'-752.4\')'),('2019-08-21 13:48:00','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-22\',\n								completed=1\n							WHERE orderno = \'27527\'\n							AND orderlineno = \'1\''),('2019-08-21 13:48:00','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LCP\'\n						AND loccode = \'AN\''),('2019-08-21 13:48:00','jhairud','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														\'27025\',\n														\'AN\',\n														\'2019-08-22\',\n														\'106\',\n														\'99\',\n														\'19.72\',\n														\'93\',\n														\'27527\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-63703.13\',\n														\'\' )'),('2019-08-21 13:48:00','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56769\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-21 13:48:00','jhairud','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										\'788.8\',\n										\'0\',\n										\'106\',\n										\'99\',\n										\'40\',\n										\'0\',\n										\'LCP\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LCP\'\n								AND custbranch.debtorno = \'106\'\n								AND custbranch.branchcode=\'99\''),('2019-08-21 13:48:00','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27025\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'106 - LCP x 40 @ 19.72\',\n											\'-788.8\')'),('2019-08-21 13:48:00','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27025\',\n										\'2019-08-22\',\n										\'93\',\n										\'1100\',\n										\'106\',\n										\'1679.91\')'),('2019-08-21 13:48:00','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27025\',\n											\'2019-08-22\',\n											\'93\',\n											\'2300\',\n											\'106\',\n											\'-138.71\')'),('2019-08-21 13:48:00','jhairud','UPDATE gltrans SET amount = amount - 0.00000000000025579538487363607\n								WHERE counterindex = \'122327\''),('2019-08-22 10:21:53','jhairud','UPDATE config SET confvalue = \'2019-08-22\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-22 11:35: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								\'27528\',\n								\'TM020\',\n								\'R010\',\n								\'19107-002798\',\n								\'\',\n								\'2019-08-22 11:35\',\n								\'DE\',\n								\'10\',\n								\'RFMF (FIJI MILITARY FORCES)\',\n								\'SUVA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-23\',\n								\'2019-08-23\',\n								\'2019-08-23\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-22 11:35: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					\'27528\',\n					\'LN\',\n					\'11.47\',\n					\'176\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-22\'\n				)'),('2019-08-22 11:35:56','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27026\')\n			WHERE orderno= \'27528\''),('2019-08-22 11:35:56','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									\'27026\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-08-23\',\n									\'2019-08-22 11-35-56\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27528\',\n									\'2018.72\',\n									\'181.68\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-22 11:35:56','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34137\',\n									\'1\',\n									\'181.6848\')'),('2019-08-22 11:35:56','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 176,\n								actualdispatchdate = \'2019-08-23\',\n								completed=1\n							WHERE orderno = \'27528\'\n							AND orderlineno = \'0\''),('2019-08-22 11:35:56','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 176\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-08-22 11:35:56','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														\'27026\',\n														\'AN\',\n														\'2019-08-23\',\n														\'TM020\',\n														\'R010\',\n														\'11.47\',\n														\'93\',\n														\'27528\',\n														\'-176\',\n														\'0\',\n														\'0.0000\',\n														\'-259431.32\',\n														\'\' )'),('2019-08-22 11:35:56','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56770\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-22 11:35:56','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										\'2018.72\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'176\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-22 11:35:56','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27026\',\n											\'2019-08-23\',\n											\'93\',\n											\'4100\',\n											\'TM020 - LN x 176 @ 11.47\',\n											\'-2018.72\')'),('2019-08-22 11:35:56','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27026\',\n										\'2019-08-23\',\n										\'93\',\n										\'1100\',\n										\'TM020\',\n										\'2200.4\')'),('2019-08-22 11:35:56','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27026\',\n											\'2019-08-23\',\n											\'93\',\n											\'2300\',\n											\'TM020\',\n											\'-181.68\')'),('2019-08-22 14:18:12','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2089\',\n								  	\'11\',\n									\'TM013\',\n									\'41\',\n									\'2019-08-22\',\n									\'2019-08-22 14-18-12\',\n									\'93\',\n									\'DE\',\n									\'-286.49\',\n									\'-25.7841\',\n								  	\'0\',\n									\'1\',\n									\'Inv# 27012 - all goods returned as per invoice\'\n									)'),('2019-08-22 14:18:12','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34138\',\n						\'1\',\n						\'-25.7841\')'),('2019-08-22 14:18:12','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'RDS\',\n												11,\n												2089,\n												\'AN\',\n												\'2019-08-22\',\n												\'TM013\',\n												\'41\',\n												\'12\',\n												\'93\',\n												\'3.20\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 27012 - all goods returned as per invoice\',\n												\'-926.19\',\n												\'\'\n											)'),('2019-08-22 14:18:12','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56771\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-22 14:18:12','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 3.20\n							WHERE locstock.stockid = \'RDS\'\n							AND locstock.loccode = \'AN\''),('2019-08-22 14:18:12','jhairud','INSERT 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												\'-38.4\',\n												\'0\',\n												\'TM013\',\n												\'41\',\n												\'-3.2\',\n												\'0\',\n												\'RDS\',\n												custbranch.area,\n												1,\n												\'fe\',\n												stockmaster.categoryid\n										FROM stockmaster,\n												custbranch\n										WHERE stockmaster.stockid = \'RDS\'\n										AND custbranch.debtorno = \'TM013\'\n										AND custbranch.branchcode=\'41\''),('2019-08-22 14:18:12','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2089\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RDS x 3.20 @ 12.00\',\n											\'38.4\'\n											)'),('2019-08-22 14:18:12','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'RS\',\n												11,\n												2089,\n												\'AN\',\n												\'2019-08-22\',\n												\'TM013\',\n												\'41\',\n												\'12\',\n												\'93\',\n												\'4.25\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 27012 - all goods returned as per invoice\',\n												\'-19876.29\',\n												\'\'\n											)'),('2019-08-22 14:18:12','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56772\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-22 14:18:12','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 4.25\n							WHERE locstock.stockid = \'RS\'\n							AND locstock.loccode = \'AN\''),('2019-08-22 14:18:12','jhairud','INSERT 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												\'fe\',\n												stockmaster.categoryid\n										FROM stockmaster,\n												custbranch\n										WHERE stockmaster.stockid = \'RS\'\n										AND custbranch.debtorno = \'TM013\'\n										AND custbranch.branchcode=\'41\''),('2019-08-22 14:18:12','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2089\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RS x 4.25 @ 12.00\',\n											\'51\'\n											)'),('2019-08-22 14:18:12','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'SF500G\',\n												11,\n												2089,\n												\'AN\',\n												\'2019-08-22\',\n												\'TM013\',\n												\'41\',\n												\'16.95\',\n												\'93\',\n												\'3.70\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 27012 - all goods returned as per invoice\',\n												\'-9599.131\',\n												\'\'\n											)'),('2019-08-22 14:18:12','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56773\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-22 14:18:12','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 3.70\n							WHERE locstock.stockid = \'SF500G\'\n							AND locstock.loccode = \'AN\''),('2019-08-22 14:18:12','jhairud','INSERT 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												\'-62.715\',\n												\'0\',\n												\'TM013\',\n												\'41\',\n												\'-3.7\',\n												\'0\',\n												\'SF500G\',\n												custbranch.area,\n												1,\n												\'fe\',\n												stockmaster.categoryid\n										FROM stockmaster,\n												custbranch\n										WHERE stockmaster.stockid = \'SF500G\'\n										AND custbranch.debtorno = \'TM013\'\n										AND custbranch.branchcode=\'41\''),('2019-08-22 14:18:12','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2089\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SF500G x 3.70 @ 16.95\',\n											\'62.715\'\n											)'),('2019-08-22 14:18:12','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'SS\',\n												11,\n												2089,\n												\'AN\',\n												\'2019-08-22\',\n												\'TM013\',\n												\'41\',\n												\'17.24\',\n												\'93\',\n												\'2.80\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 27012 - all goods returned as per invoice\',\n												\'-6709.2\',\n												\'\'\n											)'),('2019-08-22 14:18:12','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56774\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-22 14:18:12','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 2.80\n							WHERE locstock.stockid = \'SS\'\n							AND locstock.loccode = \'AN\''),('2019-08-22 14:18:12','jhairud','INSERT 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												\'-48.272\',\n												\'0\',\n												\'TM013\',\n												\'41\',\n												\'-2.8\',\n												\'0\',\n												\'SS\',\n												custbranch.area,\n												1,\n												\'fe\',\n												stockmaster.categoryid\n										FROM stockmaster,\n												custbranch\n										WHERE stockmaster.stockid = \'SS\'\n										AND custbranch.debtorno = \'TM013\'\n										AND custbranch.branchcode=\'41\''),('2019-08-22 14:18:12','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2089\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SS x 2.80 @ 17.24\',\n											\'48.272\'\n											)'),('2019-08-22 14:18:12','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'BTS\',\n												11,\n												2089,\n												\'AN\',\n												\'2019-08-22\',\n												\'TM013\',\n												\'41\',\n												\'14\',\n												\'93\',\n												\'6.15\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 27012 - all goods returned as per invoice\',\n												\'-5507.46\',\n												\'\'\n											)'),('2019-08-22 14:18:12','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56775\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-22 14:18:12','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 6.15\n							WHERE locstock.stockid = \'BTS\'\n							AND locstock.loccode = \'AN\''),('2019-08-22 14:18:12','jhairud','INSERT 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												\'-86.1\',\n												\'0\',\n												\'TM013\',\n												\'41\',\n												\'-6.15\',\n												\'0\',\n												\'BTS\',\n												custbranch.area,\n												1,\n												\'fe\',\n												stockmaster.categoryid\n										FROM stockmaster,\n												custbranch\n										WHERE stockmaster.stockid = \'BTS\'\n										AND custbranch.debtorno = \'TM013\'\n										AND custbranch.branchcode=\'41\''),('2019-08-22 14:18:12','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2089\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BTS x 6.15 @ 14.00\',\n											\'86.1\'\n											)'),('2019-08-22 14:18:12','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2089\',\n								\'2019-08-22\',\n								\'93\',\n								\'1100\',\n								\'TM013\',\n								\'-312.2741\')'),('2019-08-22 14:18:12','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2089\',\n											\'2019-08-22\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'25.7841\')'),('2019-08-22 14:18:12','jhairud','UPDATE gltrans SET amount = amount - -0.003000000000010772\n								WHERE counterindex = \'122334\''),('2019-08-22 14:22:35','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2090\',\n								  	\'11\',\n									\'TM013\',\n									\'41\',\n									\'2019-08-22\',\n									\'2019-08-22 14-22-35\',\n									\'93\',\n									\'DE\',\n									\'-247.81\',\n									\'-22.3029\',\n								  	\'0\',\n									\'1\',\n									\'INV# 27011 - All goods returned as per invoice\'\n									)'),('2019-08-22 14:22:35','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34139\',\n						\'1\',\n						\'-22.3029\')'),('2019-08-22 14:22:35','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'RS\',\n												11,\n												2090,\n												\'AN\',\n												\'2019-08-22\',\n												\'TM013\',\n												\'41\',\n												\'12\',\n												\'93\',\n												\'4.30\',\n												\'0\',\n												\'0.0000\',\n												\'INV# 27011 - All goods returned as per invoice\',\n												\'-19871.99\',\n												\'\'\n											)'),('2019-08-22 14:22:35','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56776\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-22 14:22:35','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 4.30\n							WHERE locstock.stockid = \'RS\'\n							AND locstock.loccode = \'AN\''),('2019-08-22 14:22:35','jhairud','UPDATE salesanalysis SET Amt=Amt-51.6,\n													Cost=Cost-0,\n													Qty=Qty-4.30,\n													Disc=Disc-0\n							WHERE salesanalysis.area=\'123\'\n							AND salesanalysis.salesperson=\'fe\'\n							AND salesanalysis.typeabbrev =\'DE\'\n							AND salesanalysis.periodno = \'93\'\n							AND salesanalysis.cust = \'TM013\'\n							AND salesanalysis.custbranch = \'41\'\n							AND salesanalysis.stockid = \'RS\'\n							AND salesanalysis.stkcategory =\'FOOD\'\n							AND salesanalysis.budgetoractual=1'),('2019-08-22 14:22:35','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2090\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RS x 4.30 @ 12.00\',\n											\'51.6\'\n											)'),('2019-08-22 14:22:35','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'SF500G\',\n												11,\n												2090,\n												\'AN\',\n												\'2019-08-22\',\n												\'TM013\',\n												\'41\',\n												\'16.95\',\n												\'93\',\n												\'3.00\',\n												\'0\',\n												\'0.0000\',\n												\'INV# 27011 - All goods returned as per invoice\',\n												\'-9596.131\',\n												\'\'\n											)'),('2019-08-22 14:22:35','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56777\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-22 14:22:35','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 3.00\n							WHERE locstock.stockid = \'SF500G\'\n							AND locstock.loccode = \'AN\''),('2019-08-22 14:22:35','jhairud','UPDATE salesanalysis SET Amt=Amt-50.85,\n													Cost=Cost-0,\n													Qty=Qty-3.00,\n													Disc=Disc-0\n							WHERE salesanalysis.area=\'123\'\n							AND salesanalysis.salesperson=\'fe\'\n							AND salesanalysis.typeabbrev =\'DE\'\n							AND salesanalysis.periodno = \'93\'\n							AND salesanalysis.cust = \'TM013\'\n							AND salesanalysis.custbranch = \'41\'\n							AND salesanalysis.stockid = \'SF500G\'\n							AND salesanalysis.stkcategory =\'FOOD\'\n							AND salesanalysis.budgetoractual=1'),('2019-08-22 14:22:35','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2090\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SF500G x 3.00 @ 16.95\',\n											\'50.85\'\n											)'),('2019-08-22 14:22:35','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'SS\',\n												11,\n												2090,\n												\'AN\',\n												\'2019-08-22\',\n												\'TM013\',\n												\'41\',\n												\'17.24\',\n												\'93\',\n												\'2.95\',\n												\'0\',\n												\'0.0000\',\n												\'INV# 27011 - All goods returned as per invoice\',\n												\'-6706.25\',\n												\'\'\n											)'),('2019-08-22 14:22:35','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56778\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-22 14:22:35','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 2.95\n							WHERE locstock.stockid = \'SS\'\n							AND locstock.loccode = \'AN\''),('2019-08-22 14:22:36','jhairud','UPDATE salesanalysis SET Amt=Amt-50.858,\n													Cost=Cost-0,\n													Qty=Qty-2.95,\n													Disc=Disc-0\n							WHERE salesanalysis.area=\'123\'\n							AND salesanalysis.salesperson=\'fe\'\n							AND salesanalysis.typeabbrev =\'DE\'\n							AND salesanalysis.periodno = \'93\'\n							AND salesanalysis.cust = \'TM013\'\n							AND salesanalysis.custbranch = \'41\'\n							AND salesanalysis.stockid = \'SS\'\n							AND salesanalysis.stkcategory =\'FOOD\'\n							AND salesanalysis.budgetoractual=1'),('2019-08-22 14:22:36','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2090\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SS x 2.95 @ 17.24\',\n											\'50.858\'\n											)'),('2019-08-22 14:22:36','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'BTS\',\n												11,\n												2090,\n												\'AN\',\n												\'2019-08-22\',\n												\'TM013\',\n												\'41\',\n												\'14\',\n												\'93\',\n												\'6.75\',\n												\'0\',\n												\'0.0000\',\n												\'INV# 27011 - All goods returned as per invoice\',\n												\'-5500.71\',\n												\'\'\n											)'),('2019-08-22 14:22:36','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56779\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-22 14:22:36','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 6.75\n							WHERE locstock.stockid = \'BTS\'\n							AND locstock.loccode = \'AN\''),('2019-08-22 14:22:36','jhairud','UPDATE salesanalysis SET Amt=Amt-94.5,\n													Cost=Cost-0,\n													Qty=Qty-6.75,\n													Disc=Disc-0\n							WHERE salesanalysis.area=\'123\'\n							AND salesanalysis.salesperson=\'fe\'\n							AND salesanalysis.typeabbrev =\'DE\'\n							AND salesanalysis.periodno = \'93\'\n							AND salesanalysis.cust = \'TM013\'\n							AND salesanalysis.custbranch = \'41\'\n							AND salesanalysis.stockid = \'BTS\'\n							AND salesanalysis.stkcategory =\'FOOD\'\n							AND salesanalysis.budgetoractual=1'),('2019-08-22 14:22:36','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2090\',\n											\'2019-08-22\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BTS x 6.75 @ 14.00\',\n											\'94.5\'\n											)'),('2019-08-22 14:22:36','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2090\',\n								\'2019-08-22\',\n								\'93\',\n								\'1100\',\n								\'TM013\',\n								\'-270.1129\')'),('2019-08-22 14:22:36','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2090\',\n											\'2019-08-22\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'22.3029\')'),('2019-08-22 14:22:36','jhairud','UPDATE gltrans SET amount = amount - -0.002000000000030866\n								WHERE counterindex = \'122341\''),('2019-08-22 14:29:44','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'0.01\',\n								\'34139\',\n								\'17555\'\n							)'),('2019-08-22 14:29:44','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'360.14\',\n						settled = \'1\'\n						WHERE id = \'17555\''),('2019-08-22 14:29:44','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'270.11\',\n								\'34139\',\n								\'34122\'\n							)'),('2019-08-22 14:29:44','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'270.11\',\n						settled = \'1\'\n						WHERE id = \'34122\''),('2019-08-22 14:29:44','jhairud','UPDATE debtortrans\n				SET alloc = \'-270.12\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34139\''),('2019-08-22 14:30:04','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'312.27\',\n								\'34138\',\n								\'34123\'\n							)'),('2019-08-22 14:30:04','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'312.27\',\n						settled = \'1\'\n						WHERE id = \'34123\''),('2019-08-22 14:30:04','jhairud','UPDATE debtortrans\n				SET alloc = \'-312.27\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34138\''),('2019-08-22 14:32:00','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'620.7\',\n								\'34115\',\n								\'32959\'\n							)'),('2019-08-22 14:32:00','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'620.7\',\n						settled = \'1\'\n						WHERE id = \'32959\''),('2019-08-22 14:32:00','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'170.04\',\n								\'34115\',\n								\'32958\'\n							)'),('2019-08-22 14:32:00','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'170.04\',\n						settled = \'1\'\n						WHERE id = \'32958\''),('2019-08-22 14:32:00','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'169.82\',\n								\'34115\',\n								\'32957\'\n							)'),('2019-08-22 14:32:00','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'169.82\',\n						settled = \'1\'\n						WHERE id = \'32957\''),('2019-08-22 14:32:00','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'700.43\',\n								\'34115\',\n								\'33036\'\n							)'),('2019-08-22 14:32:00','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'700.43\',\n						settled = \'1\'\n						WHERE id = \'33036\''),('2019-08-22 14:32:00','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'170.04\',\n								\'34115\',\n								\'33074\'\n							)'),('2019-08-22 14:32:00','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'170.04\',\n						settled = \'1\'\n						WHERE id = \'33074\''),('2019-08-22 14:32:00','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'170.04\',\n								\'34115\',\n								\'33075\'\n							)'),('2019-08-22 14:32:00','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'170.04\',\n						settled = \'1\'\n						WHERE id = \'33075\''),('2019-08-22 14:32:00','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'509.68\',\n								\'34115\',\n								\'33095\'\n							)'),('2019-08-22 14:32:00','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'509.68\',\n						settled = \'1\'\n						WHERE id = \'33095\''),('2019-08-22 14:32:00','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'509.68\',\n								\'34115\',\n								\'33129\'\n							)'),('2019-08-22 14:32:00','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'509.68\',\n						settled = \'1\'\n						WHERE id = \'33129\''),('2019-08-22 14:32:00','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'429.85\',\n								\'34115\',\n								\'33167\'\n							)'),('2019-08-22 14:32:00','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'429.85\',\n						settled = \'0\'\n						WHERE id = \'33167\''),('2019-08-22 14:32:00','jhairud','UPDATE debtortrans\n				SET alloc = \'-3450.28\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34115\''),('2019-08-22 14:33:45','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'643.21\',\n								\'15802\',\n								\'19575\'\n							)'),('2019-08-22 14:33:45','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'643.21\',\n						settled = \'1\'\n						WHERE id = \'19575\''),('2019-08-22 14:33:45','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'239.8\',\n								\'15802\',\n								\'19578\'\n							)'),('2019-08-22 14:33:45','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'239.8\',\n						settled = \'1\'\n						WHERE id = \'19578\''),('2019-08-22 14:33:45','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-22\',\n								\'179.74\',\n								\'15802\',\n								\'19597\'\n							)'),('2019-08-22 14:33:45','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'179.74\',\n						settled = \'0\'\n						WHERE id = \'19597\''),('2019-08-22 14:33:45','jhairud','UPDATE debtortrans\n				SET alloc = \'-1062.75\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'15802\''),('2019-08-23 10:48:19','jhairud','UPDATE config SET confvalue = \'2019-08-23\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-23 12:22:55','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2091\',\n								  	\'11\',\n									\'TM080\',\n									\'R031\',\n									\'2019-08-23\',\n									\'2019-08-23 12-22-55\',\n									\'93\',\n									\'DE\',\n									\'-2080\',\n									\'-187.2\',\n								  	\'0\',\n									\'1\',\n									\'Inv# 24996 - fully paid but not allocated\\\\r\\\\nRcp# 11965 01/02/2019\'\n									)'),('2019-08-23 12:22:55','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34140\',\n						\'1\',\n						\'-187.2\')'),('2019-08-23 12:22:55','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'LPP\',\n												11,\n												2091,\n												\'AN\',\n												\'2019-08-23\',\n												\'TM080\',\n												\'R031\',\n												\'13\',\n												\'93\',\n												\'160.00\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 24996 - fully paid but not allocated\\\\r\\\\nRcp# 11965 01/02/2019\',\n												\'-58843.52\',\n												\'\'\n											)'),('2019-08-23 12:22:55','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56780\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-23 12:22:55','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 160.00\n							WHERE locstock.stockid = \'LPP\'\n							AND locstock.loccode = \'AN\''),('2019-08-23 12:22:55','jhairud','INSERT 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												\'-2080\',\n												\'0\',\n												\'TM080\',\n												\'R031\',\n												\'-160\',\n												\'0\',\n												\'LPP\',\n												custbranch.area,\n												1,\n												\'fe\',\n												stockmaster.categoryid\n										FROM stockmaster,\n												custbranch\n										WHERE stockmaster.stockid = \'LPP\'\n										AND custbranch.debtorno = \'TM080\'\n										AND custbranch.branchcode=\'R031\''),('2019-08-23 12:22:55','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2091\',\n											\'2019-08-23\',\n											\'93\',\n											\'4100\',\n											\'TM080 - LPP x 160.00 @ 13.00\',\n											\'2080\'\n											)'),('2019-08-23 12:22:55','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2091\',\n								\'2019-08-23\',\n								\'93\',\n								\'1100\',\n								\'TM080\',\n								\'-2267.2\')'),('2019-08-23 12:22:55','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2091\',\n											\'2019-08-23\',\n											\'93\',\n											\'2300\',\n											\'TM080\',\n											\'187.2\')'),('2019-08-23 13:26:14','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								\'27529\',\n								\'TM040\',\n								\'89\',\n								\'\',\n								\'\',\n								\'2019-08-23 13:26\',\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-24\',\n								\'2019-08-24\',\n								\'2019-08-24\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-23 13:26:14','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					\'27529\',\n					\'LN\',\n					\'12.84\',\n					\'83.26\',\n					\'0\',\n					\'20.23/18.93/22.50/21.60\',\n					\'\',\n					\'2019-08-23\'\n				)'),('2019-08-23 13:26:14','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					\'27529\',\n					\'LF\',\n					\'18.81\',\n					\'25.18\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-23\'\n				)'),('2019-08-23 13:26:20','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27027\')\n			WHERE orderno= \'27529\''),('2019-08-23 13:26:20','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									\'27027\',\n									10,\n									\'TM040\',\n									\'89\',\n									\'2019-08-24\',\n									\'2019-08-23 13-26-20\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27529\',\n									\'1542.69\',\n									\'138.84\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-23 13:26:20','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34141\',\n									\'1\',\n									\'138.842478\')'),('2019-08-23 13:26:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 83.26,\n								actualdispatchdate = \'2019-08-24\',\n								completed=1\n							WHERE orderno = \'27529\'\n							AND orderlineno = \'0\''),('2019-08-23 13:26:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 83.26\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-08-23 13:26:20','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														\'27027\',\n														\'AN\',\n														\'2019-08-24\',\n														\'TM040\',\n														\'89\',\n														\'12.84\',\n														\'93\',\n														\'27529\',\n														\'-83.26\',\n														\'0\',\n														\'0.0000\',\n														\'-259514.58\',\n														\'20.23/18.93/22.50/21.60\' )'),('2019-08-23 13:26:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56781\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-23 13:26:20','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										\'1069.06\',\n										\'0\',\n										\'TM040\',\n										\'89\',\n										\'83.26\',\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-23 13:26:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27027\',\n											\'2019-08-24\',\n											\'93\',\n											\'4100\',\n											\'TM040 - LN x 83.26 @ 12.84\',\n											\'-1069.06\')'),('2019-08-23 13:26:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 25.18,\n								actualdispatchdate = \'2019-08-24\',\n								completed=1\n							WHERE orderno = \'27529\'\n							AND orderlineno = \'1\''),('2019-08-23 13:26:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 25.18\n						WHERE locstock.stockid = \'LF\'\n						AND loccode = \'AN\''),('2019-08-23 13:26:20','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														\'27027\',\n														\'AN\',\n														\'2019-08-24\',\n														\'TM040\',\n														\'89\',\n														\'18.81\',\n														\'93\',\n														\'27529\',\n														\'-25.18\',\n														\'0\',\n														\'0.0000\',\n														\'-540205.56\',\n														\'\' )'),('2019-08-23 13:26:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56782\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-23 13:26:20','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										\'473.64\',\n										\'0\',\n										\'TM040\',\n										\'89\',\n										\'25.18\',\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 = \'TM040\'\n								AND custbranch.branchcode=\'89\''),('2019-08-23 13:26:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27027\',\n											\'2019-08-24\',\n											\'93\',\n											\'4100\',\n											\'TM040 - LF x 25.18 @ 18.81\',\n											\'-473.64\')'),('2019-08-23 13:26:20','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27027\',\n										\'2019-08-24\',\n										\'93\',\n										\'1100\',\n										\'TM040\',\n										\'1681.53\')'),('2019-08-23 13:26:20','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27027\',\n											\'2019-08-24\',\n											\'93\',\n											\'2300\',\n											\'TM040\',\n											\'-138.84\')'),('2019-08-23 13:26:20','zaabed','UPDATE gltrans SET amount = amount - -0.009999999999848797\n								WHERE counterindex = \'122350\''),('2019-08-23 13:29:32','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								\'27530\',\n								\'72\',\n								\'S090\',\n								\'\',\n								\'\',\n								\'2019-08-23 13:29\',\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-24\',\n								\'2019-08-24\',\n								\'2019-08-24\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-23 13:29:32','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					\'27530\',\n					\'LN\',\n					\'12.84\',\n					\'39.28\',\n					\'0\',\n					\'19.50/19.78\',\n					\'\',\n					\'2019-08-23\'\n				)'),('2019-08-23 13:29:32','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					\'27530\',\n					\'LF\',\n					\'18.81\',\n					\'47.76\',\n					\'0\',\n					\'25.3/22.46\',\n					\'\',\n					\'2019-08-23\'\n				)'),('2019-08-23 13:29:38','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27028\')\n			WHERE orderno= \'27530\''),('2019-08-23 13:29: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									\'27028\',\n									10,\n									\'72\',\n									\'S090\',\n									\'2019-08-24\',\n									\'2019-08-23 13-29-38\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27530\',\n									\'1402.72\',\n									\'126.24\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-23 13:29:38','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34142\',\n									\'1\',\n									\'126.244872\')'),('2019-08-23 13:29:38','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 39.28,\n								actualdispatchdate = \'2019-08-24\',\n								completed=1\n							WHERE orderno = \'27530\'\n							AND orderlineno = \'0\''),('2019-08-23 13:29:38','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 39.28\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-08-23 13:29: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 (\'LN\',\n														10,\n														\'27028\',\n														\'AN\',\n														\'2019-08-24\',\n														\'72\',\n														\'S090\',\n														\'12.84\',\n														\'93\',\n														\'27530\',\n														\'-39.28\',\n														\'0\',\n														\'0.0000\',\n														\'-259553.86\',\n														\'19.50/19.78\' )'),('2019-08-23 13:29:38','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56783\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-23 13:29: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										\'504.36\',\n										\'0\',\n										\'72\',\n										\'S090\',\n										\'39.28\',\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-23 13:29:38','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27028\',\n											\'2019-08-24\',\n											\'93\',\n											\'4100\',\n											\'72 - LN x 39.28 @ 12.84\',\n											\'-504.36\')'),('2019-08-23 13:29:38','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 47.76,\n								actualdispatchdate = \'2019-08-24\',\n								completed=1\n							WHERE orderno = \'27530\'\n							AND orderlineno = \'1\''),('2019-08-23 13:29:38','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 47.76\n						WHERE locstock.stockid = \'LF\'\n						AND loccode = \'AN\''),('2019-08-23 13:29: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 (\'LF\',\n														10,\n														\'27028\',\n														\'AN\',\n														\'2019-08-24\',\n														\'72\',\n														\'S090\',\n														\'18.81\',\n														\'93\',\n														\'27530\',\n														\'-47.76\',\n														\'0\',\n														\'0.0000\',\n														\'-540253.32\',\n														\'25.3/22.46\' )'),('2019-08-23 13:29:38','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56784\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-23 13:29: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										\'898.37\',\n										\'0\',\n										\'72\',\n										\'S090\',\n										\'47.76\',\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-23 13:29:38','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27028\',\n											\'2019-08-24\',\n											\'93\',\n											\'4100\',\n											\'72 - LF x 47.76 @ 18.81\',\n											\'-898.37\')'),('2019-08-23 13:29:38','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27028\',\n										\'2019-08-24\',\n										\'93\',\n										\'1100\',\n										\'72\',\n										\'1528.96\')'),('2019-08-23 13:29:38','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27028\',\n											\'2019-08-24\',\n											\'93\',\n											\'2300\',\n											\'72\',\n											\'-126.24\')'),('2019-08-23 13:29:38','zaabed','UPDATE gltrans SET amount = amount - -0.009999999999976694\n								WHERE counterindex = \'122354\''),('2019-08-23 13:37: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								\'27531\',\n								\'TM092\',\n								\'T031\',\n								\'448202madras\',\n								\'\',\n								\'2019-08-23 13:37\',\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-24\',\n								\'2019-08-24\',\n								\'2019-08-24\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-23 13:37: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					\'27531\',\n					\'FISH\',\n					\'12\',\n					\'10\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-23\'\n				)'),('2019-08-23 13:37:55','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27029\')\n			WHERE orderno= \'27531\''),('2019-08-23 13:37: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									\'27029\',\n									10,\n									\'TM092\',\n									\'T031\',\n									\'2019-08-24\',\n									\'2019-08-23 13-37-55\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27531\',\n									\'120\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-23 13:37:55','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34143\',\n									\'1\',\n									\'0\')'),('2019-08-23 13:37:55','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-24\',\n								completed=1\n							WHERE orderno = \'27531\'\n							AND orderlineno = \'0\''),('2019-08-23 13:37:55','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-23 13:37: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 (\'FISH\',\n														10,\n														\'27029\',\n														\'AN\',\n														\'2019-08-24\',\n														\'TM092\',\n														\'T031\',\n														\'12\',\n														\'93\',\n														\'27531\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-45300.9401\',\n														\'marlin\' )'),('2019-08-23 13:37:55','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56785\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-23 13:37: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										\'120\',\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-23 13:37:55','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27029\',\n											\'2019-08-24\',\n											\'93\',\n											\'4100\',\n											\'TM092 - FISH x 10 @ 12\',\n											\'-120\')'),('2019-08-23 13:37:55','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27029\',\n										\'2019-08-24\',\n										\'93\',\n										\'1100\',\n										\'TM092\',\n										\'120\')'),('2019-08-23 14:46:02','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2092\',\n								  	\'11\',\n									\'TM080\',\n									\'R031\',\n									\'2019-08-23\',\n									\'2019-08-23 14-46-02\',\n									\'93\',\n									\'DE\',\n									\'-281.6\',\n									\'-25.344\',\n								  	\'0\',\n									\'1\',\n									\'Inv# 25017 - Fully paid but not allocated Rcpt# 11965\'\n									)'),('2019-08-23 14:46:02','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34144\',\n						\'1\',\n						\'-25.344\')'),('2019-08-23 14:46:02','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'BN\',\n												11,\n												2092,\n												\'AN\',\n												\'2019-08-23\',\n												\'TM080\',\n												\'R031\',\n												\'22\',\n												\'93\',\n												\'12.80\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 25017 - Fully paid but not allocated Rcpt# 11965\',\n												\'-44105.261\',\n												\'\'\n											)'),('2019-08-23 14:46:02','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56786\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-23 14:46:02','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 12.80\n							WHERE locstock.stockid = \'BN\'\n							AND locstock.loccode = \'AN\''),('2019-08-23 14:46:02','jhairud','INSERT 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												\'-281.6\',\n												\'0\',\n												\'TM080\',\n												\'R031\',\n												\'-12.8\',\n												\'0\',\n												\'BN\',\n												custbranch.area,\n												1,\n												\'fe\',\n												stockmaster.categoryid\n										FROM stockmaster,\n												custbranch\n										WHERE stockmaster.stockid = \'BN\'\n										AND custbranch.debtorno = \'TM080\'\n										AND custbranch.branchcode=\'R031\''),('2019-08-23 14:46:02','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2092\',\n											\'2019-08-23\',\n											\'93\',\n											\'4100\',\n											\'TM080 - BN x 12.80 @ 22.00\',\n											\'281.6\'\n											)'),('2019-08-23 14:46:02','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2092\',\n								\'2019-08-23\',\n								\'93\',\n								\'1100\',\n								\'TM080\',\n								\'-306.944\')'),('2019-08-23 14:46:02','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2092\',\n											\'2019-08-23\',\n											\'93\',\n											\'2300\',\n											\'TM080\',\n											\'25.344\')'),('2019-08-23 14:47:31','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2093\',\n								  	\'11\',\n									\'TM080\',\n									\'R031\',\n									\'2019-08-23\',\n									\'2019-08-23 14-47-31\',\n									\'93\',\n									\'DE\',\n									\'-1040\',\n									\'-93.6\',\n								  	\'0\',\n									\'1\',\n									\'Inv# 25018 - Fully paid but not allocated Rcpt# 11965\'\n									)'),('2019-08-23 14:47:31','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34145\',\n						\'1\',\n						\'-93.6\')'),('2019-08-23 14:47:31','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'LPP\',\n												11,\n												2093,\n												\'AN\',\n												\'2019-08-23\',\n												\'TM080\',\n												\'R031\',\n												\'13\',\n												\'93\',\n												\'80.00\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 25018 - Fully paid but not allocated Rcpt# 11965\',\n												\'-58763.52\',\n												\'\'\n											)'),('2019-08-23 14:47:31','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56787\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-23 14:47:31','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 80.00\n							WHERE locstock.stockid = \'LPP\'\n							AND locstock.loccode = \'AN\''),('2019-08-23 14:47:31','jhairud','UPDATE salesanalysis SET Amt=Amt-1040,\n													Cost=Cost-0,\n													Qty=Qty-80.00,\n													Disc=Disc-0\n							WHERE salesanalysis.area=\'123\'\n							AND salesanalysis.salesperson=\'fe\'\n							AND salesanalysis.typeabbrev =\'DE\'\n							AND salesanalysis.periodno = \'93\'\n							AND salesanalysis.cust = \'TM080\'\n							AND salesanalysis.custbranch = \'R031\'\n							AND salesanalysis.stockid = \'LPP\'\n							AND salesanalysis.stkcategory =\'FOOD\'\n							AND salesanalysis.budgetoractual=1'),('2019-08-23 14:47:31','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2093\',\n											\'2019-08-23\',\n											\'93\',\n											\'4100\',\n											\'TM080 - LPP x 80.00 @ 13.00\',\n											\'1040\'\n											)'),('2019-08-23 14:47:31','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2093\',\n								\'2019-08-23\',\n								\'93\',\n								\'1100\',\n								\'TM080\',\n								\'-1133.6\')'),('2019-08-23 14:47:31','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2093\',\n											\'2019-08-23\',\n											\'93\',\n											\'2300\',\n											\'TM080\',\n											\'93.6\')'),('2019-08-23 14:49:31','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2094\',\n								  	\'11\',\n									\'TM080\',\n									\'R031\',\n									\'2019-08-23\',\n									\'2019-08-23 14-49-31\',\n									\'93\',\n									\'DE\',\n									\'-733.46\',\n									\'-66.0114\',\n								  	\'0\',\n									\'1\',\n									\'Inv# 25089 - Fully paid but not allocated Rcpt# 11965\'\n									)'),('2019-08-23 14:49:31','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34146\',\n						\'1\',\n						\'-66.0114\')'),('2019-08-23 14:49:31','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'IL\',\n												11,\n												2094,\n												\'AN\',\n												\'2019-08-23\',\n												\'TM080\',\n												\'R031\',\n												\'26\',\n												\'93\',\n												\'28.21\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 25089 - Fully paid but not allocated Rcpt# 11965\',\n												\'-31747.97\',\n												\'\'\n											)'),('2019-08-23 14:49:31','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56788\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-23 14:49:31','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 28.21\n							WHERE locstock.stockid = \'IL\'\n							AND locstock.loccode = \'AN\''),('2019-08-23 14:49:31','jhairud','INSERT 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												\'-733.46\',\n												\'0\',\n												\'TM080\',\n												\'R031\',\n												\'-28.21\',\n												\'0\',\n												\'IL\',\n												custbranch.area,\n												1,\n												\'fe\',\n												stockmaster.categoryid\n										FROM stockmaster,\n												custbranch\n										WHERE stockmaster.stockid = \'IL\'\n										AND custbranch.debtorno = \'TM080\'\n										AND custbranch.branchcode=\'R031\''),('2019-08-23 14:49:31','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2094\',\n											\'2019-08-23\',\n											\'93\',\n											\'4100\',\n											\'TM080 - IL x 28.21 @ 26.00\',\n											\'733.46\'\n											)'),('2019-08-23 14:49:31','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2094\',\n								\'2019-08-23\',\n								\'93\',\n								\'1100\',\n								\'TM080\',\n								\'-799.4714\')'),('2019-08-23 14:49:31','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2094\',\n											\'2019-08-23\',\n											\'93\',\n											\'2300\',\n											\'TM080\',\n											\'66.0114\')'),('2019-08-23 14:51:16','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2095\',\n								  	\'11\',\n									\'TM080\',\n									\'R031\',\n									\'2019-08-23\',\n									\'2019-08-23 14-51-16\',\n									\'93\',\n									\'DE\',\n									\'-700\',\n									\'-63\',\n								  	\'0\',\n									\'1\',\n									\'Inv# 25108 - Fully paid but not allocated Rcpt# 11965\'\n									)'),('2019-08-23 14:51:16','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34147\',\n						\'1\',\n						\'-63\')'),('2019-08-23 14:51:16','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'LCP\',\n												11,\n												2095,\n												\'AN\',\n												\'2019-08-23\',\n												\'TM080\',\n												\'R031\',\n												\'17.5\',\n												\'93\',\n												\'40.00\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 25108 - Fully paid but not allocated Rcpt# 11965\',\n												\'-63663.13\',\n												\'\'\n											)'),('2019-08-23 14:51:16','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56789\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-23 14:51:16','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 40.00\n							WHERE locstock.stockid = \'LCP\'\n							AND locstock.loccode = \'AN\''),('2019-08-23 14:51:16','jhairud','INSERT 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												\'-700\',\n												\'0\',\n												\'TM080\',\n												\'R031\',\n												\'-40\',\n												\'0\',\n												\'LCP\',\n												custbranch.area,\n												1,\n												\'fe\',\n												stockmaster.categoryid\n										FROM stockmaster,\n												custbranch\n										WHERE stockmaster.stockid = \'LCP\'\n										AND custbranch.debtorno = \'TM080\'\n										AND custbranch.branchcode=\'R031\''),('2019-08-23 14:51:16','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2095\',\n											\'2019-08-23\',\n											\'93\',\n											\'4100\',\n											\'TM080 - LCP x 40.00 @ 17.50\',\n											\'700\'\n											)'),('2019-08-23 14:51:16','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2095\',\n								\'2019-08-23\',\n								\'93\',\n								\'1100\',\n								\'TM080\',\n								\'-763\')'),('2019-08-23 14:51:16','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2095\',\n											\'2019-08-23\',\n											\'93\',\n											\'2300\',\n											\'TM080\',\n											\'63\')'),('2019-08-23 14:52:57','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2096\',\n								  	\'11\',\n									\'TM080\',\n									\'R031\',\n									\'2019-08-23\',\n									\'2019-08-23 14-52-57\',\n									\'93\',\n									\'DE\',\n									\'-286.2\',\n									\'-25.758\',\n								  	\'0\',\n									\'1\',\n									\'Inv# 25213 - Fully paid but not allocated Rcpt# 11965\'\n									)'),('2019-08-23 14:52:57','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34148\',\n						\'1\',\n						\'-25.758\')'),('2019-08-23 14:52:57','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'WW\',\n												11,\n												2096,\n												\'AN\',\n												\'2019-08-23\',\n												\'TM080\',\n												\'R031\',\n												\'12\',\n												\'93\',\n												\'23.85\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 25213 - Fully paid but not allocated Rcpt# 11965\',\n												\'-10513.16\',\n												\'\'\n											)'),('2019-08-23 14:52:57','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56790\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-23 14:52:57','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 23.85\n							WHERE locstock.stockid = \'WW\'\n							AND locstock.loccode = \'AN\''),('2019-08-23 14:52:57','jhairud','INSERT 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												\'-286.2\',\n												\'0\',\n												\'TM080\',\n												\'R031\',\n												\'-23.85\',\n												\'0\',\n												\'WW\',\n												custbranch.area,\n												1,\n												\'fe\',\n												stockmaster.categoryid\n										FROM stockmaster,\n												custbranch\n										WHERE stockmaster.stockid = \'WW\'\n										AND custbranch.debtorno = \'TM080\'\n										AND custbranch.branchcode=\'R031\''),('2019-08-23 14:52:57','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2096\',\n											\'2019-08-23\',\n											\'93\',\n											\'4100\',\n											\'TM080 - WW x 23.85 @ 12.00\',\n											\'286.2\'\n											)'),('2019-08-23 14:52:57','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2096\',\n								\'2019-08-23\',\n								\'93\',\n								\'1100\',\n								\'TM080\',\n								\'-311.958\')'),('2019-08-23 14:52:57','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2096\',\n											\'2019-08-23\',\n											\'93\',\n											\'2300\',\n											\'TM080\',\n											\'25.758\')'),('2019-08-23 14:52:57','jhairud','UPDATE gltrans SET amount = amount - -0.00000000000003907985046680551\n								WHERE counterindex = \'122372\''),('2019-08-23 14:55:38','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2097\',\n								  	\'11\',\n									\'TM080\',\n									\'R031\',\n									\'2019-08-23\',\n									\'2019-08-23 14-55-38\',\n									\'93\',\n									\'DE\',\n									\'-1040\',\n									\'-93.6\',\n								  	\'0\',\n									\'1\',\n									\'Inv# 25221 - Fully paid but not allocated Rcpt# 11965\'\n									)'),('2019-08-23 14:55:38','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34149\',\n						\'1\',\n						\'-93.6\')'),('2019-08-23 14:55:38','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'LPP\',\n												11,\n												2097,\n												\'AN\',\n												\'2019-08-23\',\n												\'TM080\',\n												\'R031\',\n												\'13\',\n												\'93\',\n												\'80.00\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 25221 - Fully paid but not allocated Rcpt# 11965\',\n												\'-58683.52\',\n												\'\'\n											)'),('2019-08-23 14:55:38','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56791\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-23 14:55:38','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 80.00\n							WHERE locstock.stockid = \'LPP\'\n							AND locstock.loccode = \'AN\''),('2019-08-23 14:55:38','jhairud','UPDATE salesanalysis SET Amt=Amt-1040,\n													Cost=Cost-0,\n													Qty=Qty-80.00,\n													Disc=Disc-0\n							WHERE salesanalysis.area=\'123\'\n							AND salesanalysis.salesperson=\'fe\'\n							AND salesanalysis.typeabbrev =\'DE\'\n							AND salesanalysis.periodno = \'93\'\n							AND salesanalysis.cust = \'TM080\'\n							AND salesanalysis.custbranch = \'R031\'\n							AND salesanalysis.stockid = \'LPP\'\n							AND salesanalysis.stkcategory =\'FOOD\'\n							AND salesanalysis.budgetoractual=1'),('2019-08-23 14:55:38','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2097\',\n											\'2019-08-23\',\n											\'93\',\n											\'4100\',\n											\'TM080 - LPP x 80.00 @ 13.00\',\n											\'1040\'\n											)'),('2019-08-23 14:55:38','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2097\',\n								\'2019-08-23\',\n								\'93\',\n								\'1100\',\n								\'TM080\',\n								\'-1133.6\')'),('2019-08-23 14:55:38','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2097\',\n											\'2019-08-23\',\n											\'93\',\n											\'2300\',\n											\'TM080\',\n											\'93.6\')'),('2019-08-23 14:57:34','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2098\',\n								  	\'11\',\n									\'TM080\',\n									\'R031\',\n									\'2019-08-23\',\n									\'2019-08-23 14-57-34\',\n									\'93\',\n									\'DE\',\n									\'-2080\',\n									\'-187.2\',\n								  	\'0\',\n									\'1\',\n									\'Inv# 25288 - Fully paid but not allocated Rcpt# 11965\'\n									)'),('2019-08-23 14:57:34','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34150\',\n						\'1\',\n						\'-187.2\')'),('2019-08-23 14:57:34','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'LPP\',\n												11,\n												2098,\n												\'AN\',\n												\'2019-08-23\',\n												\'TM080\',\n												\'R031\',\n												\'13\',\n												\'93\',\n												\'160.00\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 25288 - Fully paid but not allocated Rcpt# 11965\',\n												\'-58523.52\',\n												\'\'\n											)'),('2019-08-23 14:57:34','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56792\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-23 14:57:34','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 160.00\n							WHERE locstock.stockid = \'LPP\'\n							AND locstock.loccode = \'AN\''),('2019-08-23 14:57:34','jhairud','UPDATE salesanalysis SET Amt=Amt-2080,\n													Cost=Cost-0,\n													Qty=Qty-160.00,\n													Disc=Disc-0\n							WHERE salesanalysis.area=\'123\'\n							AND salesanalysis.salesperson=\'fe\'\n							AND salesanalysis.typeabbrev =\'DE\'\n							AND salesanalysis.periodno = \'93\'\n							AND salesanalysis.cust = \'TM080\'\n							AND salesanalysis.custbranch = \'R031\'\n							AND salesanalysis.stockid = \'LPP\'\n							AND salesanalysis.stkcategory =\'FOOD\'\n							AND salesanalysis.budgetoractual=1'),('2019-08-23 14:57:34','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2098\',\n											\'2019-08-23\',\n											\'93\',\n											\'4100\',\n											\'TM080 - LPP x 160.00 @ 13.00\',\n											\'2080\'\n											)'),('2019-08-23 14:57:34','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2098\',\n								\'2019-08-23\',\n								\'93\',\n								\'1100\',\n								\'TM080\',\n								\'-2267.2\')'),('2019-08-23 14:57:34','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2098\',\n											\'2019-08-23\',\n											\'93\',\n											\'2300\',\n											\'TM080\',\n											\'187.2\')'),('2019-08-23 15:09:19','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'0.05\',\n								\'16093\',\n								\'24751\'\n							)'),('2019-08-23 15:09:19','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'396.28\',\n						settled = \'0\'\n						WHERE id = \'24751\''),('2019-08-23 15:09:19','jhairud','UPDATE debtortrans\n				SET alloc = \'-0.05\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'16093\''),('2019-08-23 15:09:38','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'0.04\',\n								\'16092\',\n								\'24751\'\n							)'),('2019-08-23 15:09:38','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'396.32\',\n						settled = \'1\'\n						WHERE id = \'24751\''),('2019-08-23 15:09:38','jhairud','DELETE FROM custallocns WHERE id = \'14780\''),('2019-08-23 15:09:38','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'652.65\',\n								\'16092\',\n								\'15157\'\n							)'),('2019-08-23 15:09:38','jhairud','UPDATE debtortrans\n				SET alloc = \'-652.69\',\n				diffonexch = \'0\',\n				settled=\'0\'\n				WHERE id = \'16092\''),('2019-08-23 15:49:08','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'799.47\',\n								\'34146\',\n								\'31516\'\n							)'),('2019-08-23 15:49:08','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'799.47\',\n						settled = \'1\'\n						WHERE id = \'31516\''),('2019-08-23 15:49:08','jhairud','UPDATE debtortrans\n				SET alloc = \'-799.47\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34146\''),('2019-08-23 15:49:39','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'1133.6\',\n								\'34145\',\n								\'31427\'\n							)'),('2019-08-23 15:49:39','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1133.6\',\n						settled = \'1\'\n						WHERE id = \'31427\''),('2019-08-23 15:49:39','jhairud','UPDATE debtortrans\n				SET alloc = \'-1133.6\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34145\''),('2019-08-23 15:49:52','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'763\',\n								\'34147\',\n								\'31535\'\n							)'),('2019-08-23 15:49:52','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'763\',\n						settled = \'1\'\n						WHERE id = \'31535\''),('2019-08-23 15:49:52','jhairud','UPDATE debtortrans\n				SET alloc = \'-763\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34147\''),('2019-08-23 15:50:08','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'311.96\',\n								\'34148\',\n								\'31694\'\n							)'),('2019-08-23 15:50:08','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'311.96\',\n						settled = \'1\'\n						WHERE id = \'31694\''),('2019-08-23 15:50:08','jhairud','UPDATE debtortrans\n				SET alloc = \'-311.96\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34148\''),('2019-08-23 15:50:25','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'2267.2\',\n								\'34140\',\n								\'31394\'\n							)'),('2019-08-23 15:50:25','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'2267.2\',\n						settled = \'1\'\n						WHERE id = \'31394\''),('2019-08-23 15:50:25','jhairud','UPDATE debtortrans\n				SET alloc = \'-2267.2\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34140\''),('2019-08-23 15:50:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'2267.2\',\n								\'34150\',\n								\'31785\'\n							)'),('2019-08-23 15:50:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'2267.2\',\n						settled = \'1\'\n						WHERE id = \'31785\''),('2019-08-23 15:50:37','jhairud','UPDATE debtortrans\n				SET alloc = \'-2267.2\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34150\''),('2019-08-23 15:50:49','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'1133.6\',\n								\'34149\',\n								\'31704\'\n							)'),('2019-08-23 15:50:49','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1133.6\',\n						settled = \'1\'\n						WHERE id = \'31704\''),('2019-08-23 15:50:49','jhairud','UPDATE debtortrans\n				SET alloc = \'-1133.6\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34149\''),('2019-08-23 15:51:02','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'0.01\',\n								\'34144\',\n								\'17508\'\n							)'),('2019-08-23 15:51:02','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'250.7\',\n						settled = \'1\'\n						WHERE id = \'17508\''),('2019-08-23 15:51:02','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-23\',\n								\'306.94\',\n								\'34144\',\n								\'31426\'\n							)'),('2019-08-23 15:51:02','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'306.94\',\n						settled = \'1\'\n						WHERE id = \'31426\''),('2019-08-23 15:51:02','jhairud','UPDATE debtortrans\n				SET alloc = \'-306.95\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34144\''),('2019-08-24 09:37:51','jhairud','UPDATE config SET confvalue = \'2019-08-24\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-24 10:23: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								\'27532\',\n								\'133\',\n								\'133\',\n								\'\',\n								\'\',\n								\'2019-08-24 10:23\',\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-25\',\n								\'2019-08-25\',\n								\'2019-08-25\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-24 10:23: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					\'27532\',\n					\'WH\',\n					\'12.50\',\n					\'7.2\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-24\'\n				)'),('2019-08-24 10:23: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					\'27532\',\n					\'CHICKEN\',\n					\'12.00\',\n					\'1.95\',\n					\'0\',\n					\'drumstick\',\n					\'\',\n					\'2019-08-24\'\n				)'),('2019-08-24 10:23: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					\'27532\',\n					\'RDS\',\n					\'12.50\',\n					\'2.1\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-24\'\n				)'),('2019-08-24 10:23:53','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27030\')\n			WHERE orderno= \'27532\''),('2019-08-24 10:23:53','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									\'27030\',\n									10,\n									\'133\',\n									\'133\',\n									\'2019-08-25\',\n									\'2019-08-24 10-23-53\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27532\',\n									\'139.65\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-24 10:23:53','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34151\',\n									\'1\',\n									\'0\')'),('2019-08-24 10:23:53','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 7.2,\n								actualdispatchdate = \'2019-08-25\',\n								completed=1\n							WHERE orderno = \'27532\'\n							AND orderlineno = \'0\''),('2019-08-24 10:23:53','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 7.2\n						WHERE locstock.stockid = \'WH\'\n						AND loccode = \'AN\''),('2019-08-24 10:23:53','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 (\'WH\',\n														10,\n														\'27030\',\n														\'AN\',\n														\'2019-08-25\',\n														\'133\',\n														\'133\',\n														\'12.5\',\n														\'93\',\n														\'27532\',\n														\'-7.2\',\n														\'0\',\n														\'0.0000\',\n														\'-16082.03\',\n														\'\' )'),('2019-08-24 10:23:53','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56793\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-24 10:23:53','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										\'90\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'7.2\',\n										\'0\',\n										\'WH\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'WH\'\n								AND custbranch.debtorno = \'133\'\n								AND custbranch.branchcode=\'133\''),('2019-08-24 10:23:53','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27030\',\n											\'2019-08-25\',\n											\'93\',\n											\'4100\',\n											\'133 - WH x 7.2 @ 12.5\',\n											\'-90\')'),('2019-08-24 10:23:53','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 1.95,\n								actualdispatchdate = \'2019-08-25\',\n								completed=1\n							WHERE orderno = \'27532\'\n							AND orderlineno = \'1\''),('2019-08-24 10:23:53','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 1.95\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-24 10:23:53','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														\'27030\',\n														\'AN\',\n														\'2019-08-25\',\n														\'133\',\n														\'133\',\n														\'12\',\n														\'93\',\n														\'27532\',\n														\'-1.95\',\n														\'0\',\n														\'0.0000\',\n														\'-87557.22\',\n														\'drumstick\' )'),('2019-08-24 10:23:53','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56794\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-24 10:23:53','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										\'23.4\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'1.95\',\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 = \'133\'\n								AND custbranch.branchcode=\'133\''),('2019-08-24 10:23:53','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27030\',\n											\'2019-08-25\',\n											\'93\',\n											\'4100\',\n											\'133 - CHICKEN x 1.95 @ 12\',\n											\'-23.4\')'),('2019-08-24 10:23:53','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2.1,\n								actualdispatchdate = \'2019-08-25\',\n								completed=1\n							WHERE orderno = \'27532\'\n							AND orderlineno = \'2\''),('2019-08-24 10:23:53','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2.1\n						WHERE locstock.stockid = \'RDS\'\n						AND loccode = \'AN\''),('2019-08-24 10:23:53','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														\'27030\',\n														\'AN\',\n														\'2019-08-25\',\n														\'133\',\n														\'133\',\n														\'12.5\',\n														\'93\',\n														\'27532\',\n														\'-2.1\',\n														\'0\',\n														\'0.0000\',\n														\'-928.29\',\n														\'\' )'),('2019-08-24 10:23:53','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56795\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-24 10:23:53','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										\'26.25\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'2.1\',\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 = \'133\'\n								AND custbranch.branchcode=\'133\''),('2019-08-24 10:23:53','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27030\',\n											\'2019-08-25\',\n											\'93\',\n											\'4100\',\n											\'133 - RDS x 2.1 @ 12.5\',\n											\'-26.25\')'),('2019-08-24 10:23:53','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27030\',\n										\'2019-08-25\',\n										\'93\',\n										\'1100\',\n										\'133\',\n										\'139.65\')'),('2019-08-24 10:27: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								\'27533\',\n								\'TM074\',\n								\'P001\',\n								\'centerpoint\',\n								\'\',\n								\'2019-08-24 10: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-25\',\n								\'2019-08-25\',\n								\'2019-08-25\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-24 10:27: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					\'27533\',\n					\'MBT\',\n					\'9.5\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-24\'\n				)'),('2019-08-24 10:27: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					\'27533\',\n					\'CP\',\n					\'18.81\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-24\'\n				)'),('2019-08-24 10:27: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					\'27533\',\n					\'BM500G\',\n					\'9.00\',\n					\'3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-24\'\n				)'),('2019-08-24 10:27: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					\'3\',\n					\'27533\',\n					\'SF500G\',\n					\'16.40\',\n					\'8.4\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-24\'\n				)'),('2019-08-24 10:28:01','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27031\')\n			WHERE orderno= \'27533\''),('2019-08-24 10:28:01','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									\'27031\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-25\',\n									\'2019-08-24 10-28-01\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27533\',\n									\'541.91\',\n									\'25.39\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-24 10:28:01','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34152\',\n									\'1\',\n									\'25.3935\')'),('2019-08-24 10:28:01','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-25\',\n								completed=1\n							WHERE orderno = \'27533\'\n							AND orderlineno = \'0\''),('2019-08-24 10:28:01','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-24 10:28:01','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														\'27031\',\n														\'AN\',\n														\'2019-08-25\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27533\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-7322.6\',\n														\'\' )'),('2019-08-24 10:28:01','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56796\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-24 10:28:01','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										\'95\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'10\',\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-24 10:28:01','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27031\',\n											\'2019-08-25\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 10 @ 9.5\',\n											\'-95\')'),('2019-08-24 10:28:01','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-25\',\n								completed=1\n							WHERE orderno = \'27533\'\n							AND orderlineno = \'1\''),('2019-08-24 10:28:01','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-24 10:28:01','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														\'27031\',\n														\'AN\',\n														\'2019-08-25\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27533\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-306458.65\',\n														\'\' )'),('2019-08-24 10:28:01','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56797\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-24 10:28:01','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										\'282.15\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'15\',\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-24 10:28:01','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27031\',\n											\'2019-08-25\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 15 @ 18.81\',\n											\'-282.15\')'),('2019-08-24 10:28:01','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-08-25\',\n								completed=1\n							WHERE orderno = \'27533\'\n							AND orderlineno = \'2\''),('2019-08-24 10:28:01','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'BM500G\'\n						AND loccode = \'AN\''),('2019-08-24 10:28:01','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														\'27031\',\n														\'AN\',\n														\'2019-08-25\',\n														\'TM074\',\n														\'P001\',\n														\'9\',\n														\'93\',\n														\'27533\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-71722.11\',\n														\'\' )'),('2019-08-24 10:28:01','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56798\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-24 10:28:01','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-24 10:28:01','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27031\',\n											\'2019-08-25\',\n											\'93\',\n											\'4100\',\n											\'TM074 - BM500G x 3 @ 9\',\n											\'-27\')'),('2019-08-24 10:28:01','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 8.4,\n								actualdispatchdate = \'2019-08-25\',\n								completed=1\n							WHERE orderno = \'27533\'\n							AND orderlineno = \'3\''),('2019-08-24 10:28:01','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 8.4\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-24 10:28:01','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														\'27031\',\n														\'AN\',\n														\'2019-08-25\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27533\',\n														\'-8.4\',\n														\'0\',\n														\'0.0000\',\n														\'-9604.531\',\n														\'\' )'),('2019-08-24 10:28:01','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56799\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-24 10:28:01','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										\'137.76\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'8.4\',\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-24 10:28:01','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27031\',\n											\'2019-08-25\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 8.4 @ 16.4\',\n											\'-137.76\')'),('2019-08-24 10:28:01','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27031\',\n										\'2019-08-25\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'567.3\')'),('2019-08-24 10:28:01','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27031\',\n											\'2019-08-25\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-25.39\')'),('2019-08-24 10:28:01','zaabed','UPDATE gltrans SET amount = amount - -0.000000000000014210854715202004\n								WHERE counterindex = \'122385\''),('2019-08-24 11:44:30','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								\'27534\',\n								\'TM074\',\n								\'P001\',\n								\'\',\n								\'\',\n								\'2019-08-24 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-25\',\n								\'2019-08-25\',\n								\'2019-08-25\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-24 11:44:30','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					\'27534\',\n					\'SF500G\',\n					\'16.40\',\n					\'7.55\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-24\'\n				)'),('2019-08-24 11:44:30','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					\'27534\',\n					\'BM500G\',\n					\'9.00\',\n					\'3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-24\'\n				)'),('2019-08-24 11:44:36','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27032\')\n			WHERE orderno= \'27534\''),('2019-08-24 11:44: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									\'27032\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-25\',\n									\'2019-08-24 11-44-36\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27534\',\n									\'150.82\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-24 11:44:36','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34153\',\n									\'1\',\n									\'0\')'),('2019-08-24 11:44:36','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 7.55,\n								actualdispatchdate = \'2019-08-25\',\n								completed=1\n							WHERE orderno = \'27534\'\n							AND orderlineno = \'0\''),('2019-08-24 11:44:36','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 7.55\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-24 11:44: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 (\'SF500G\',\n														10,\n														\'27032\',\n														\'AN\',\n														\'2019-08-25\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27534\',\n														\'-7.55\',\n														\'0\',\n														\'0.0000\',\n														\'-9612.081\',\n														\'\' )'),('2019-08-24 11:44:36','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56800\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-24 11:44: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										\'123.82\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'7.55\',\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-24 11:44:36','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27032\',\n											\'2019-08-25\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 7.55 @ 16.4\',\n											\'-123.82\')'),('2019-08-24 11:44:36','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-08-25\',\n								completed=1\n							WHERE orderno = \'27534\'\n							AND orderlineno = \'1\''),('2019-08-24 11:44:36','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'BM500G\'\n						AND loccode = \'AN\''),('2019-08-24 11:44: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 (\'BM500G\',\n														10,\n														\'27032\',\n														\'AN\',\n														\'2019-08-25\',\n														\'TM074\',\n														\'P001\',\n														\'9\',\n														\'93\',\n														\'27534\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-71725.11\',\n														\'\' )'),('2019-08-24 11:44:36','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56801\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-24 11:44: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										\'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-24 11:44:36','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27032\',\n											\'2019-08-25\',\n											\'93\',\n											\'4100\',\n											\'TM074 - BM500G x 3 @ 9\',\n											\'-27\')'),('2019-08-24 11:44:36','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27032\',\n										\'2019-08-25\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'150.82\')'),('2019-08-26 09:20:08','jhairud','UPDATE config SET confvalue = \'2019-08-26\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-26 09:29:20','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						\'4696\',\n						12,\n						\'TM077\',\n						\'\',\n						\'2019-08-26\',\n						\'2019-08-26 09-29-20\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-8534.86\',\n						\'0\',\n						\'BSP# 11143\'\n					)'),('2019-08-26 09:29:20','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-26\',\n						lastpaid=\'8534.86\'\n					WHERE debtorsmaster.debtorno=\'TM077\''),('2019-08-26 09:29:20','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			\'4696\',\n			\'1100\',\n			\'BSP# 11143\',\n			\'1\',\n			\'1\',\n			\'2019-08-26\',\n			\'Cheque\',\n			\'8534.86\',\n			\'FJD\'\n		)'),('2019-08-26 09:29:20','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4696\',\n					\'2019-08-26\',\n					\'93\',\n					\'1100\',\n					\'BSP# 11143\',\n					\'8534.86\'\n				)'),('2019-08-26 09:29:20','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4696\',\n							\'2019-08-26\',\n							\'93\',\n							\'1100\',\n							\'BSP# 11143\',\n							\'-8534.86\'\n							)'),('2019-08-26 09:30:38','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						\'4697\',\n						12,\n						\'TM047\',\n						\'\',\n						\'2019-08-26\',\n						\'2019-08-26 09-30-38\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-1214.27\',\n						\'0\',\n						\'ANZ# 018615\'\n					)'),('2019-08-26 09:30:38','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-26\',\n						lastpaid=\'1214.27\'\n					WHERE debtorsmaster.debtorno=\'TM047\''),('2019-08-26 09:30:38','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			\'4697\',\n			\'1100\',\n			\'ANZ# 018615\',\n			\'1\',\n			\'1\',\n			\'2019-08-26\',\n			\'Cheque\',\n			\'1214.27\',\n			\'FJD\'\n		)'),('2019-08-26 09:30:38','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4697\',\n					\'2019-08-26\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 018615\',\n					\'1214.27\'\n				)'),('2019-08-26 09:30:38','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4697\',\n							\'2019-08-26\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 018615\',\n							\'-1214.27\'\n							)'),('2019-08-26 09:30:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'1214.27\',\n								\'34155\',\n								\'34078\'\n							)'),('2019-08-26 09:30:55','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1214.27\',\n						settled = \'1\'\n						WHERE id = \'34078\''),('2019-08-26 09:30:55','jhairud','UPDATE debtortrans\n				SET alloc = \'-1214.27\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34155\''),('2019-08-26 09:31:25','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'4386.43\',\n								\'34154\',\n								\'33386\'\n							)'),('2019-08-26 09:31:25','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'4386.43\',\n						settled = \'1\'\n						WHERE id = \'33386\''),('2019-08-26 09:31:25','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'1533.14\',\n								\'34154\',\n								\'33604\'\n							)'),('2019-08-26 09:31:25','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1533.14\',\n						settled = \'1\'\n						WHERE id = \'33604\''),('2019-08-26 09:31:25','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'2615.29\',\n								\'34154\',\n								\'33699\'\n							)'),('2019-08-26 09:31:25','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'2615.29\',\n						settled = \'1\'\n						WHERE id = \'33699\''),('2019-08-26 09:31:25','jhairud','UPDATE debtortrans\n				SET alloc = \'-8534.86\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34154\''),('2019-08-26 11:44:02','jhairud','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								\'27535\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-08-26 11:44\',\n								\'DE\',\n								\'10\',\n								\'CURRY HOUSE\',\n								\'SUVA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-26 11:44:02','jhairud','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					\'27535\',\n					\'CP\',\n					\'18.81\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 11:44:14','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27033\')\n			WHERE orderno= \'27535\''),('2019-08-26 11:44:14','jhairud','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									\'27033\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-27\',\n									\'2019-08-26 11-44-14\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27535\',\n									\'752.4\',\n									\'67.72\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-26 11:44:14','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34156\',\n									\'1\',\n									\'67.716\')'),('2019-08-26 11:44:14','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27535\'\n							AND orderlineno = \'0\''),('2019-08-26 11:44:14','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-26 11:44:14','jhairud','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														\'27033\',\n														\'AN\',\n														\'2019-08-27\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'93\',\n														\'27535\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-306498.65\',\n														\'\' )'),('2019-08-26 11:44:14','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56802\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-26 11:44:14','jhairud','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										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-26 11:44:14','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27033\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'TM044 - CP x 40 @ 18.81\',\n											\'-752.4\')'),('2019-08-26 11:44:14','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27033\',\n										\'2019-08-27\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'820.12\')'),('2019-08-26 11:44:14','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27033\',\n											\'2019-08-27\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-67.72\')'),('2019-08-26 11:47:16','jhairud','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								\'27536\',\n								\'TM002\',\n								\'1\',\n								\'18737\',\n								\'18737\',\n								\'2019-08-26 11:47\',\n								\'DE\',\n								\'10\',\n								\'Vatuvara Limited\',\n								\'P O Box 586\',\n								\'Suva\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-26 11:47:16','jhairud','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					\'27536\',\n					\'LCPS\',\n					\'16.00\',\n					\'30\',\n					\'0\',\n					\'3 x 10kg\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 11:47:37','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27034\')\n			WHERE orderno= \'27536\''),('2019-08-26 11:47:37','jhairud','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									\'27034\',\n									10,\n									\'TM002\',\n									\'1\',\n									\'2019-08-27\',\n									\'2019-08-26 11-47-37\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27536\',\n									\'480\',\n									\'43.2\',\n									\'0\',\n									\'1\',\n									\'18737\',\n									\'10\',\n									\'18737\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-26 11:47:37','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34157\',\n									\'1\',\n									\'43.2\')'),('2019-08-26 11:47:37','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27536\'\n							AND orderlineno = \'0\''),('2019-08-26 11:47:37','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 30\n						WHERE locstock.stockid = \'LCPS\'\n						AND loccode = \'AN\''),('2019-08-26 11:47:37','jhairud','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														\'27034\',\n														\'AN\',\n														\'2019-08-27\',\n														\'TM002\',\n														\'1\',\n														\'16\',\n														\'93\',\n														\'27536\',\n														\'-30\',\n														\'0\',\n														\'0.0000\',\n														\'-45953.89\',\n														\'3 x 10kg\' )'),('2019-08-26 11:47:37','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56803\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-26 11:47:37','jhairud','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										\'480\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'30\',\n										\'0\',\n										\'LCPS\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LCPS\'\n								AND custbranch.debtorno = \'TM002\'\n								AND custbranch.branchcode=\'1\''),('2019-08-26 11:47:37','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27034\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'TM002 - LCPS x 30 @ 16\',\n											\'-480\')'),('2019-08-26 11:47:37','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27034\',\n										\'2019-08-27\',\n										\'93\',\n										\'1100\',\n										\'TM002\',\n										\'523.2\')'),('2019-08-26 11:47:37','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27034\',\n											\'2019-08-27\',\n											\'93\',\n											\'2300\',\n											\'TM002\',\n											\'-43.2\')'),('2019-08-26 11:47:37','jhairud','UPDATE gltrans SET amount = amount - 0.00000000000004263256414560601\n								WHERE counterindex = \'122401\''),('2019-08-26 11:50:31','jhairud','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								\'27537\',\n								\'TM074\',\n								\'P001\',\n								\'\',\n								\'Center Point\',\n								\'2019-08-26 11:50\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'Center Point\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-26 11:50:31','jhairud','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					\'27537\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 11:50:31','jhairud','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					\'27537\',\n					\'MBT\',\n					\'9.50\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 11:50:54','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27035\')\n			WHERE orderno= \'27537\''),('2019-08-26 11:50:54','jhairud','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									\'27035\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-27\',\n									\'2019-08-26 11-50-54\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27537\',\n									\'518.7\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'Center Point\',\n									\'10\',\n									\'Center Point\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-26 11:50:54','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34158\',\n									\'1\',\n									\'33.858\')'),('2019-08-26 11:50:54','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27537\'\n							AND orderlineno = \'0\''),('2019-08-26 11:50:54','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-26 11:50:54','jhairud','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														\'27035\',\n														\'AN\',\n														\'2019-08-27\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27537\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306518.65\',\n														\'\' )'),('2019-08-26 11:50:54','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56804\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-26 11:50:54','jhairud','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										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-26 11:50:54','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27035\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-26 11:50:54','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27537\'\n							AND orderlineno = \'1\''),('2019-08-26 11:50:54','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-26 11:50:54','jhairud','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														\'27035\',\n														\'AN\',\n														\'2019-08-27\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27537\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-7337.6\',\n														\'\' )'),('2019-08-26 11:50:54','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56805\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-26 11:50:54','jhairud','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										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-26 11:50:54','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27035\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 15 @ 9.5\',\n											\'-142.5\')'),('2019-08-26 11:50:54','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27035\',\n										\'2019-08-27\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'552.56\')'),('2019-08-26 11:50:54','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27035\',\n											\'2019-08-27\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-08-26 11:50:54','jhairud','UPDATE gltrans SET amount = amount - -0.00000000000009947598300641403\n								WHERE counterindex = \'122404\''),('2019-08-26 12:24: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								\'27538\',\n								\'TM074\',\n								\'P001\',\n								\'HARBOUR CENTER\',\n								\'\',\n								\'2019-08-26 12: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-27\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-26 12:24: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					\'27538\',\n					\'FF\',\n					\'17.00\',\n					\'29.65\',\n					\'0\',\n					\'23.3/6.35marlin\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 12:24:07','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27036\')\n			WHERE orderno= \'27538\''),('2019-08-26 12:24: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									\'27036\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-27\',\n									\'2019-08-26 12-24-07\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27538\',\n									\'504.05\',\n									\'45.36\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-26 12:24:07','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34159\',\n									\'1\',\n									\'45.3645\')'),('2019-08-26 12:24:07','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 29.65,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27538\'\n							AND orderlineno = \'0\''),('2019-08-26 12:24:07','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 29.65\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-26 12:24: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 (\'FF\',\n														10,\n														\'27036\',\n														\'AN\',\n														\'2019-08-27\',\n														\'TM074\',\n														\'P001\',\n														\'17\',\n														\'93\',\n														\'27538\',\n														\'-29.65\',\n														\'0\',\n														\'0.0000\',\n														\'-21156.92\',\n														\'23.3/6.35marlin\' )'),('2019-08-26 12:24:07','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56806\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-26 12:24: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										\'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-26 12:24:07','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27036\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'TM074 - FF x 29.65 @ 17\',\n											\'-504.05\')'),('2019-08-26 12:24:07','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27036\',\n										\'2019-08-27\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'549.41\')'),('2019-08-26 12:24:07','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27036\',\n											\'2019-08-27\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-45.36\')'),('2019-08-26 12:24:07','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000004263256414560601\n								WHERE counterindex = \'122408\''),('2019-08-26 12:25: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								\'27539\',\n								\'TM074\',\n								\'P001\',\n								\'HARBOUR CENTER\',\n								\'\',\n								\'2019-08-26 12:25\',\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-27\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-26 12:25: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					\'27539\',\n					\'CP\',\n					\'18.81\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 12:25: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					\'1\',\n					\'27539\',\n					\'MBT\',\n					\'9.50\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 12:25:57','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27037\')\n			WHERE orderno= \'27539\''),('2019-08-26 12:25: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									\'27037\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-27\',\n									\'2019-08-26 12-25-57\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27539\',\n									\'141.55\',\n									\'8.46\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-26 12:25:57','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34160\',\n									\'1\',\n									\'8.4645\')'),('2019-08-26 12:25:57','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27539\'\n							AND orderlineno = \'0\''),('2019-08-26 12:25:57','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-26 12:25: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														\'27037\',\n														\'AN\',\n														\'2019-08-27\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27539\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-306523.65\',\n														\'\' )'),('2019-08-26 12:25:57','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56807\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-26 12:25: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										\'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-26 12:25:57','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27037\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 5 @ 18.81\',\n											\'-94.05\')'),('2019-08-26 12:25:57','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27539\'\n							AND orderlineno = \'1\''),('2019-08-26 12:25:57','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-26 12:25: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 (\'MBT\',\n														10,\n														\'27037\',\n														\'AN\',\n														\'2019-08-27\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27539\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-7342.6\',\n														\'\' )'),('2019-08-26 12:25:57','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56808\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-26 12:25: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										\'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-26 12:25:57','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27037\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 5 @ 9.5\',\n											\'-47.5\')'),('2019-08-26 12:25:57','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27037\',\n										\'2019-08-27\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'150.01\')'),('2019-08-26 12:25:57','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27037\',\n											\'2019-08-27\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-8.46\')'),('2019-08-26 12:25:57','zaabed','UPDATE gltrans SET amount = amount - -0.000000000000021316282072803006\n								WHERE counterindex = \'122411\''),('2019-08-26 12:27:28','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								\'27540\',\n								\'TM074\',\n								\'P001\',\n								\'sport/c\',\n								\'\',\n								\'2019-08-26 12: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-27\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-26 12:27:28','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					\'27540\',\n					\'SF500G\',\n					\'16.4\',\n					\'7.4\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 12:27:40','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27038\')\n			WHERE orderno= \'27540\''),('2019-08-26 12:27:40','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									\'27038\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-27\',\n									\'2019-08-26 12-27-40\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27540\',\n									\'121.36\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-26 12:27:40','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34161\',\n									\'1\',\n									\'0\')'),('2019-08-26 12:27:40','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 7.4,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27540\'\n							AND orderlineno = \'0\''),('2019-08-26 12:27:40','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 7.4\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-26 12:27:40','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														\'27038\',\n														\'AN\',\n														\'2019-08-27\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27540\',\n														\'-7.4\',\n														\'0\',\n														\'0.0000\',\n														\'-9619.481\',\n														\'\' )'),('2019-08-26 12:27:40','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56809\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-26 12:27:40','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.36\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'7.4\',\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-26 12:27:40','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27038\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 7.4 @ 16.4\',\n											\'-121.36\')'),('2019-08-26 12:27:40','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27038\',\n										\'2019-08-27\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'121.36\')'),('2019-08-26 12:30:54','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								\'27541\',\n								\'TM099\',\n								\'W010\',\n								\'\',\n								\'\',\n								\'2019-08-26 12:30\',\n								\'DE\',\n								\'10\',\n								\'WHARELYS BUTCHER\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Fiji\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-26 12:30:54','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					\'27541\',\n					\'LM\',\n					\'17.89\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 12:31:03','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27039\')\n			WHERE orderno= \'27541\''),('2019-08-26 12:31: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									\'27039\',\n									10,\n									\'TM099\',\n									\'W010\',\n									\'2019-08-27\',\n									\'2019-08-26 12-31-03\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27541\',\n									\'715.6\',\n									\'64.4\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-26 12:31:03','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34162\',\n									\'1\',\n									\'64.404\')'),('2019-08-26 12:31:03','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27541\'\n							AND orderlineno = \'0\''),('2019-08-26 12:31:03','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-26 12:31: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 (\'LM\',\n														10,\n														\'27039\',\n														\'AN\',\n														\'2019-08-27\',\n														\'TM099\',\n														\'W010\',\n														\'17.89\',\n														\'93\',\n														\'27541\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-32168.78\',\n														\'\' )'),('2019-08-26 12:31:03','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56810\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-26 12:31: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										\'715.6\',\n										\'0\',\n										\'TM099\',\n										\'W010\',\n										\'40\',\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 = \'TM099\'\n								AND custbranch.branchcode=\'W010\''),('2019-08-26 12:31:03','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27039\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'TM099 - LM x 40 @ 17.89\',\n											\'-715.6\')'),('2019-08-26 12:31:03','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27039\',\n										\'2019-08-27\',\n										\'93\',\n										\'1100\',\n										\'TM099\',\n										\'780\')'),('2019-08-26 12:31:03','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27039\',\n											\'2019-08-27\',\n											\'93\',\n											\'2300\',\n											\'TM099\',\n											\'-64.4\')'),('2019-08-26 14:05:13','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								\'27542\',\n								\'TM051\',\n								\'F021\',\n								\'0154pick up\',\n								\'\',\n								\'2019-08-26 14:05\',\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-27\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-26 14:05:13','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					\'27542\',\n					\'FISH\',\n					\'12.50\',\n					\'4.23\',\n					\'0\',\n					\'marlin \',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 14:05:21','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27040\')\n			WHERE orderno= \'27542\''),('2019-08-26 14: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									\'27040\',\n									10,\n									\'TM051\',\n									\'F021\',\n									\'2019-08-27\',\n									\'2019-08-26 14-05-21\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27542\',\n									\'52.88\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-26 14:05:21','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34163\',\n									\'1\',\n									\'0\')'),('2019-08-26 14:05:21','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.23,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27542\'\n							AND orderlineno = \'0\''),('2019-08-26 14:05:21','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4.23\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-26 14: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 (\'FISH\',\n														10,\n														\'27040\',\n														\'AN\',\n														\'2019-08-27\',\n														\'TM051\',\n														\'F021\',\n														\'12.5\',\n														\'93\',\n														\'27542\',\n														\'-4.23\',\n														\'0\',\n														\'0.0000\',\n														\'-45305.1701\',\n														\'marlin \' )'),('2019-08-26 14:05:21','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56811\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-26 14: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										\'52.88\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'4.23\',\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 = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-08-26 14:05:21','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27040\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'TM051 - FISH x 4.23 @ 12.5\',\n											\'-52.88\')'),('2019-08-26 14:05:21','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27040\',\n										\'2019-08-27\',\n										\'93\',\n										\'1100\',\n										\'TM051\',\n										\'52.88\')'),('2019-08-26 14:34: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								\'27543\',\n								\'TM044\',\n								\'C008\',\n								\'pick up\',\n								\'\',\n								\'2019-08-26 14:34\',\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-27\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-26 14:34: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					\'27543\',\n					\'LM\',\n					\'17.43\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 14: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								\'27544\',\n								\'TM044\',\n								\'C008\',\n								\'pick up\',\n								\'\',\n								\'2019-08-26 14: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-27\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-26 14: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					\'27544\',\n					\'LM\',\n					\'17.43\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 14:42:18','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27041\')\n			WHERE orderno= \'27544\''),('2019-08-26 14:42: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									\'27041\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-27\',\n									\'2019-08-26 14-42-18\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27544\',\n									\'87.15\',\n									\'7.84\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-26 14:42:18','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34164\',\n									\'1\',\n									\'7.8435\')'),('2019-08-26 14:42:18','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27544\'\n							AND orderlineno = \'0\''),('2019-08-26 14:42:18','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-26 14:42: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 (\'LM\',\n														10,\n														\'27041\',\n														\'AN\',\n														\'2019-08-27\',\n														\'TM044\',\n														\'C008\',\n														\'17.43\',\n														\'93\',\n														\'27544\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-32173.78\',\n														\'\' )'),('2019-08-26 14:42:18','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56812\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-26 14:42: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										\'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-26 14:42:18','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27041\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'TM044 - LM x 5 @ 17.43\',\n											\'-87.15\')'),('2019-08-26 14:42:18','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27041\',\n										\'2019-08-27\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'94.99\')'),('2019-08-26 14:42:18','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27041\',\n											\'2019-08-27\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-7.84\')'),('2019-08-26 14:42:18','zaabed','UPDATE gltrans SET amount = amount - -0.000000000000010658141036401503\n								WHERE counterindex = \'122422\''),('2019-08-26 15:08:36','jhairud','DELETE FROM custallocns WHERE id = \'22858\''),('2019-08-26 15:08:36','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'7507.72\',\n								\'25806\',\n								\'23997\'\n							)'),('2019-08-26 15:08:36','jhairud','DELETE FROM custallocns WHERE id = \'22857\''),('2019-08-26 15:08:36','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'7512.28\',\n								\'25806\',\n								\'22407\'\n							)'),('2019-08-26 15:11:28','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'5711.6\',\n								\'21146\',\n								\'23097\'\n							)'),('2019-08-26 15:11:28','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'5711.6\',\n						settled = \'1\'\n						WHERE id = \'23097\''),('2019-08-26 15:11:28','jhairud','DELETE FROM custallocns WHERE id = \'29017\''),('2019-08-26 15:11:28','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'5517.8\',\n								\'21146\',\n								\'20413\'\n							)'),('2019-08-26 15:11:28','jhairud','UPDATE debtortrans\n				SET alloc = \'-11229.4\',\n				diffonexch = \'0\',\n				settled=\'0\'\n				WHERE id = \'21146\''),('2019-08-26 15:15:59','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'2646.35\',\n								\'21146\',\n								\'23561\'\n							)'),('2019-08-26 15:15:59','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'2646.35\',\n						settled = \'0\'\n						WHERE id = \'23561\''),('2019-08-26 15:15:59','jhairud','DELETE FROM custallocns WHERE id = \'30231\''),('2019-08-26 15:15:59','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'5517.8\',\n								\'21146\',\n								\'20413\'\n							)'),('2019-08-26 15:15:59','jhairud','DELETE FROM custallocns WHERE id = \'30230\''),('2019-08-26 15:15:59','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'5711.6\',\n								\'21146\',\n								\'23097\'\n							)'),('2019-08-26 15:15:59','jhairud','UPDATE debtortrans\n				SET alloc = \'-13875.75\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'21146\''),('2019-08-26 15:20:25','jhairud','DELETE FROM custallocns WHERE id = \'30232\''),('2019-08-26 15:20:25','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'0\',\n						settled = \'0\'\n						WHERE id = \'23561\''),('2019-08-26 15:20:25','jhairud','DELETE FROM custallocns WHERE id = \'30233\''),('2019-08-26 15:20:25','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'464.34\',\n						settled = \'0\'\n						WHERE id = \'20413\''),('2019-08-26 15:20:25','jhairud','DELETE FROM custallocns WHERE id = \'30234\''),('2019-08-26 15:20:25','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'0\',\n						settled = \'0\'\n						WHERE id = \'23097\''),('2019-08-26 15:20:25','jhairud','UPDATE debtortrans\n				SET alloc = \'0\',\n				diffonexch = \'0\',\n				settled=\'0\'\n				WHERE id = \'21146\''),('2019-08-26 16:05:14','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								\'27545\',\n								\'133\',\n								\'133\',\n								\'pick up\',\n								\'\',\n								\'2019-08-26 16:05\',\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-27\',\n								\'2019-08-27\',\n								\'2019-08-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-26 16:05:14','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					\'27545\',\n					\'LCPS\',\n					\'15.13\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-26\'\n				)'),('2019-08-26 16:05:30','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27042\')\n			WHERE orderno= \'27545\''),('2019-08-26 16:05:30','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									\'27042\',\n									10,\n									\'133\',\n									\'133\',\n									\'2019-08-27\',\n									\'2019-08-26 16-05-30\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27545\',\n									\'75.65\',\n									\'6.81\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-26 16:05:30','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34165\',\n									\'1\',\n									\'6.8085\')'),('2019-08-26 16:05:30','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-27\',\n								completed=1\n							WHERE orderno = \'27545\'\n							AND orderlineno = \'0\''),('2019-08-26 16:05:30','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'LCPS\'\n						AND loccode = \'AN\''),('2019-08-26 16:05:30','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														\'27042\',\n														\'AN\',\n														\'2019-08-27\',\n														\'133\',\n														\'133\',\n														\'15.13\',\n														\'93\',\n														\'27545\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-45958.89\',\n														\'\' )'),('2019-08-26 16:05:30','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56813\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-26 16:05:30','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										\'75.65\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'5\',\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 = \'133\'\n								AND custbranch.branchcode=\'133\''),('2019-08-26 16:05:30','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27042\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'133 - LCPS x 5 @ 15.13\',\n											\'-75.65\')'),('2019-08-26 16:05:30','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27042\',\n										\'2019-08-27\',\n										\'93\',\n										\'1100\',\n										\'133\',\n										\'82.46\')'),('2019-08-26 16:05:30','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27042\',\n											\'2019-08-27\',\n											\'93\',\n											\'2300\',\n											\'133\',\n											\'-6.81\')'),('2019-08-26 16:05:30','zaabed','UPDATE gltrans SET amount = amount - -0.000000000000011546319456101628\n								WHERE counterindex = \'122425\''),('2019-08-26 16:12:27','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						\'4698\',\n						12,\n						\'TM030\',\n						\'\',\n						\'2019-08-26\',\n						\'2019-08-26 16-12-27\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-1297.1\',\n						\'0\',\n						\'DCR - 23/8/2019\'\n					)'),('2019-08-26 16:12:27','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-26\',\n						lastpaid=\'1297.10\'\n					WHERE debtorsmaster.debtorno=\'TM030\''),('2019-08-26 16:12:27','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			\'4698\',\n			\'1100\',\n			\'DCR - 23/8/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-26\',\n			\'Direct Credit\',\n			\'1297.1\',\n			\'FJD\'\n		)'),('2019-08-26 16:12:27','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4698\',\n					\'2019-08-26\',\n					\'93\',\n					\'1100\',\n					\'DCR - 23/8/2019\',\n					\'1297.1\'\n				)'),('2019-08-26 16:12:27','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4698\',\n							\'2019-08-26\',\n							\'93\',\n							\'1100\',\n							\'DCR - 23/8/2019\',\n							\'-1297.1\'\n							)'),('2019-08-26 16:13:32','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						\'4699\',\n						12,\n						\'98\',\n						\'\',\n						\'2019-08-26\',\n						\'2019-08-26 16-13-32\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-29005.02\',\n						\'0\',\n						\'DCR - 23/8/2019\'\n					)'),('2019-08-26 16:13:32','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-26\',\n						lastpaid=\'29005.02\'\n					WHERE debtorsmaster.debtorno=\'98\''),('2019-08-26 16:13:32','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			\'4699\',\n			\'1100\',\n			\'DCR - 23/8/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-26\',\n			\'Direct Credit\',\n			\'29005.02\',\n			\'FJD\'\n		)'),('2019-08-26 16:13:32','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4699\',\n					\'2019-08-26\',\n					\'93\',\n					\'1100\',\n					\'DCR - 23/8/2019\',\n					\'29005.02\'\n				)'),('2019-08-26 16:13:32','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4699\',\n							\'2019-08-26\',\n							\'93\',\n							\'1100\',\n							\'DCR - 23/8/2019\',\n							\'-29005.02\'\n							)'),('2019-08-26 16:14:54','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						\'4700\',\n						12,\n						\'TM079\',\n						\'\',\n						\'2019-08-26\',\n						\'2019-08-26 16-14-54\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-3000\',\n						\'0\',\n						\'DCR - 23/8/2019\'\n					)'),('2019-08-26 16:14:54','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-26\',\n						lastpaid=\'3000.00\'\n					WHERE debtorsmaster.debtorno=\'TM079\''),('2019-08-26 16:14:54','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			\'4700\',\n			\'1100\',\n			\'DCR - 23/8/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-26\',\n			\'Direct Credit\',\n			\'3000\',\n			\'FJD\'\n		)'),('2019-08-26 16:14:54','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4700\',\n					\'2019-08-26\',\n					\'93\',\n					\'1100\',\n					\'DCR - 23/8/2019\',\n					\'3000\'\n				)'),('2019-08-26 16:14:54','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4700\',\n							\'2019-08-26\',\n							\'93\',\n							\'1100\',\n							\'DCR - 23/8/2019\',\n							\'-3000\'\n							)'),('2019-08-26 16:16:11','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						\'4701\',\n						12,\n						\'106\',\n						\'\',\n						\'2019-08-26\',\n						\'2019-08-26 16-16-11\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-1499.84\',\n						\'0\',\n						\'DCR - 26/8/2019\'\n					)'),('2019-08-26 16:16:11','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-26\',\n						lastpaid=\'1499.84\'\n					WHERE debtorsmaster.debtorno=\'106\''),('2019-08-26 16:16:11','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			\'4701\',\n			\'1100\',\n			\'DCR - 26/8/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-26\',\n			\'Direct Credit\',\n			\'1499.84\',\n			\'FJD\'\n		)'),('2019-08-26 16:16:11','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4701\',\n					\'2019-08-26\',\n					\'93\',\n					\'1100\',\n					\'DCR - 26/8/2019\',\n					\'1499.84\'\n				)'),('2019-08-26 16:16:11','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4701\',\n							\'2019-08-26\',\n							\'93\',\n							\'1100\',\n							\'DCR - 26/8/2019\',\n							\'-1499.84\'\n							)'),('2019-08-26 16:17:55','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						\'4702\',\n						12,\n						\'TM057\',\n						\'\',\n						\'2019-08-26\',\n						\'2019-08-26 16-17-55\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-1539.47\',\n						\'0\',\n						\'DCR - 26/8/2019\'\n					)'),('2019-08-26 16:17:55','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-26\',\n						lastpaid=\'1539.47\'\n					WHERE debtorsmaster.debtorno=\'TM057\''),('2019-08-26 16:17:55','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			\'4702\',\n			\'1100\',\n			\'DCR - 26/8/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-26\',\n			\'Direct Credit\',\n			\'1539.47\',\n			\'FJD\'\n		)'),('2019-08-26 16:17:55','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4702\',\n					\'2019-08-26\',\n					\'93\',\n					\'1100\',\n					\'DCR - 26/8/2019\',\n					\'1539.47\'\n				)'),('2019-08-26 16:17:55','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4702\',\n							\'2019-08-26\',\n							\'93\',\n							\'1100\',\n							\'DCR - 26/8/2019\',\n							\'-1539.47\'\n							)'),('2019-08-26 16:18:59','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						\'4703\',\n						12,\n						\'TM040\',\n						\'\',\n						\'2019-08-26\',\n						\'2019-08-26 16-18-59\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-3275.66\',\n						\'0\',\n						\'DCR - 26/8/2019\'\n					)'),('2019-08-26 16:18:59','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-26\',\n						lastpaid=\'3275.66\'\n					WHERE debtorsmaster.debtorno=\'TM040\''),('2019-08-26 16:18:59','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			\'4703\',\n			\'1100\',\n			\'DCR - 26/8/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-26\',\n			\'Direct Credit\',\n			\'3275.66\',\n			\'FJD\'\n		)'),('2019-08-26 16:18:59','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4703\',\n					\'2019-08-26\',\n					\'93\',\n					\'1100\',\n					\'DCR - 26/8/2019\',\n					\'3275.66\'\n				)'),('2019-08-26 16:18:59','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4703\',\n							\'2019-08-26\',\n							\'93\',\n							\'1100\',\n							\'DCR - 26/8/2019\',\n							\'-3275.66\'\n							)'),('2019-08-26 16:19:46','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'1499.84\',\n								\'34169\',\n								\'33886\'\n							)'),('2019-08-26 16:19:46','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1499.84\',\n						settled = \'1\'\n						WHERE id = \'33886\''),('2019-08-26 16:19:46','jhairud','UPDATE debtortrans\n				SET alloc = \'-1499.84\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34169\''),('2019-08-26 16:20:04','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'1691.15\',\n								\'34171\',\n								\'33897\'\n							)'),('2019-08-26 16:20:04','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1691.15\',\n						settled = \'1\'\n						WHERE id = \'33897\''),('2019-08-26 16:20:04','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'1584.51\',\n								\'34171\',\n								\'34019\'\n							)'),('2019-08-26 16:20:04','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1584.51\',\n						settled = \'1\'\n						WHERE id = \'34019\''),('2019-08-26 16:20:04','jhairud','UPDATE debtortrans\n				SET alloc = \'-3275.66\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34171\''),('2019-08-26 16:20:18','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'1157.35\',\n								\'34170\',\n								\'33790\'\n							)'),('2019-08-26 16:20:18','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1157.35\',\n						settled = \'1\'\n						WHERE id = \'33790\''),('2019-08-26 16:20:18','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'382.12\',\n								\'34170\',\n								\'33956\'\n							)'),('2019-08-26 16:20:18','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'382.12\',\n						settled = \'1\'\n						WHERE id = \'33956\''),('2019-08-26 16:20:18','jhairud','UPDATE debtortrans\n				SET alloc = \'-1539.47\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34170\''),('2019-08-26 16:20:51','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'185.3\',\n								\'34166\',\n								\'33826\'\n							)'),('2019-08-26 16:20:51','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'185.3\',\n						settled = \'1\'\n						WHERE id = \'33826\''),('2019-08-26 16:20:51','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'555.9\',\n								\'34166\',\n								\'33895\'\n							)'),('2019-08-26 16:20:51','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'555.9\',\n						settled = \'1\'\n						WHERE id = \'33895\''),('2019-08-26 16:20:51','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'555.9\',\n								\'34166\',\n								\'33949\'\n							)'),('2019-08-26 16:20:51','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'555.9\',\n						settled = \'1\'\n						WHERE id = \'33949\''),('2019-08-26 16:20:51','jhairud','UPDATE debtortrans\n				SET alloc = \'-1297.1\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34166\''),('2019-08-26 16:21:16','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'3000.00\',\n								\'34168\',\n								\'27124\'\n							)'),('2019-08-26 16:21:16','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'20246.51\',\n						settled = \'0\'\n						WHERE id = \'27124\''),('2019-08-26 16:21:16','jhairud','UPDATE debtortrans\n				SET alloc = \'-3000\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34168\''),('2019-08-26 16:21:49','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'7757.2\',\n								\'34167\',\n								\'33522\'\n							)'),('2019-08-26 16:21:49','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'7757.2\',\n						settled = \'1\'\n						WHERE id = \'33522\''),('2019-08-26 16:21:49','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'5334.57\',\n								\'34167\',\n								\'33544\'\n							)'),('2019-08-26 16:21:49','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'5334.57\',\n						settled = \'1\'\n						WHERE id = \'33544\''),('2019-08-26 16:21:49','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'15336.37\',\n								\'34167\',\n								\'33630\'\n							)'),('2019-08-26 16:21:49','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'15336.37\',\n						settled = \'1\'\n						WHERE id = \'33630\''),('2019-08-26 16:21:49','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-26\',\n								\'576.88\',\n								\'34167\',\n								\'33668\'\n							)'),('2019-08-26 16:21:49','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'671.71\',\n						settled = \'1\'\n						WHERE id = \'33668\''),('2019-08-26 16:21:49','jhairud','UPDATE debtortrans\n				SET alloc = \'-29005.02\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34167\''),('2019-08-27 08:35:44','jhairud','UPDATE config SET confvalue = \'2019-08-27\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-27 09:32:43','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						\'4704\',\n						12,\n						\'TM002\',\n						\'\',\n						\'2019-08-27\',\n						\'2019-08-27 09-32-43\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-2818.84\',\n						\'0\',\n						\'ANZ# 17984\'\n					)'),('2019-08-27 09:32:43','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-27\',\n						lastpaid=\'2818.84\'\n					WHERE debtorsmaster.debtorno=\'TM002\''),('2019-08-27 09:32:43','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			\'4704\',\n			\'1100\',\n			\'ANZ# 17984\',\n			\'1\',\n			\'1\',\n			\'2019-08-27\',\n			\'Cheque\',\n			\'2818.84\',\n			\'FJD\'\n		)'),('2019-08-27 09:32:43','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4704\',\n					\'2019-08-27\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 17984\',\n					\'2818.84\'\n				)'),('2019-08-27 09:32:43','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4704\',\n							\'2019-08-27\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 17984\',\n							\'-2818.84\'\n							)'),('2019-08-27 09:33:56','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						\'4705\',\n						12,\n						\'TM099\',\n						\'\',\n						\'2019-08-27\',\n						\'2019-08-27 09-33-56\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-3219.7\',\n						\'0\',\n						\'WBC# 24696\'\n					)'),('2019-08-27 09:33:56','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-27\',\n						lastpaid=\'3219.70\'\n					WHERE debtorsmaster.debtorno=\'TM099\''),('2019-08-27 09:33:56','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			\'4705\',\n			\'1100\',\n			\'WBC# 24696\',\n			\'1\',\n			\'1\',\n			\'2019-08-27\',\n			\'Cheque\',\n			\'3219.7\',\n			\'FJD\'\n		)'),('2019-08-27 09:33:56','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4705\',\n					\'2019-08-27\',\n					\'93\',\n					\'1100\',\n					\'WBC# 24696\',\n					\'3219.7\'\n				)'),('2019-08-27 09:33:56','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4705\',\n							\'2019-08-27\',\n							\'93\',\n							\'1100\',\n							\'WBC# 24696\',\n							\'-3219.7\'\n							)'),('2019-08-27 09:34:41','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'0.1\',\n								\'34172\',\n								\'19000\'\n							)'),('2019-08-27 09:34:41','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'343.35\',\n						settled = \'1\'\n						WHERE id = \'19000\''),('2019-08-27 09:34:41','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'1363.59\',\n								\'34172\',\n								\'33778\'\n							)'),('2019-08-27 09:34:41','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1363.59\',\n						settled = \'1\'\n						WHERE id = \'33778\''),('2019-08-27 09:34:41','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'294.3\',\n								\'34172\',\n								\'33813\'\n							)'),('2019-08-27 09:34:41','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'294.3\',\n						settled = \'1\'\n						WHERE id = \'33813\''),('2019-08-27 09:34:41','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'1160.85\',\n								\'34172\',\n								\'33863\'\n							)'),('2019-08-27 09:34:41','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1160.85\',\n						settled = \'1\'\n						WHERE id = \'33863\''),('2019-08-27 09:34:41','jhairud','UPDATE debtortrans\n				SET alloc = \'-2818.84\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34172\''),('2019-08-27 09:34:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'3219.7\',\n								\'34173\',\n								\'33791\'\n							)'),('2019-08-27 09:34:55','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'3219.7\',\n						settled = \'1\'\n						WHERE id = \'33791\''),('2019-08-27 09:34:55','jhairud','UPDATE debtortrans\n				SET alloc = \'-3219.7\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34173\''),('2019-08-27 10:54: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								\'27546\',\n								\'TM009\',\n								\'30\',\n								\'16109lp3\',\n								\'\',\n								\'2019-08-27 10:54\',\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-28\',\n								\'2019-08-28\',\n								\'2019-08-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-27 10:54: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					\'27546\',\n					\'LPP\',\n					\'12.66\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-27\'\n				)'),('2019-08-27 10:54:09','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27043\')\n			WHERE orderno= \'27546\''),('2019-08-27 10:54: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									\'27043\',\n									10,\n									\'TM009\',\n									\'30\',\n									\'2019-08-28\',\n									\'2019-08-27 10-54-09\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27546\',\n									\'506.4\',\n									\'45.58\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-27 10:54:09','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34174\',\n									\'1\',\n									\'45.576\')'),('2019-08-27 10:54:09','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-28\',\n								completed=1\n							WHERE orderno = \'27546\'\n							AND orderlineno = \'0\''),('2019-08-27 10:54:09','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LPP\'\n						AND loccode = \'AN\''),('2019-08-27 10:54: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 (\'LPP\',\n														10,\n														\'27043\',\n														\'AN\',\n														\'2019-08-28\',\n														\'TM009\',\n														\'30\',\n														\'12.66\',\n														\'93\',\n														\'27546\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-58563.52\',\n														\'\' )'),('2019-08-27 10:54:09','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56814\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-27 10:54: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										\'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-27 10:54:09','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27043\',\n											\'2019-08-28\',\n											\'93\',\n											\'4100\',\n											\'TM009 - LPP x 40 @ 12.66\',\n											\'-506.4\')'),('2019-08-27 10:54:09','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27043\',\n										\'2019-08-28\',\n										\'93\',\n										\'1100\',\n										\'TM009\',\n										\'551.98\')'),('2019-08-27 10:54:09','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27043\',\n											\'2019-08-28\',\n											\'93\',\n											\'2300\',\n											\'TM009\',\n											\'-45.58\')'),('2019-08-27 10:54:09','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000004263256414560601\n								WHERE counterindex = \'122444\''),('2019-08-27 11:46:07','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								\'27547\',\n								\'TM020\',\n								\'R010\',\n								\'19102-031830frcskill\',\n								\'\',\n								\'2019-08-27 11:46\',\n								\'DE\',\n								\'10\',\n								\'RFMF (FIJI MILITARY FORCES)\',\n								\'SUVA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-28\',\n								\'2019-08-28\',\n								\'2019-08-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-27 11:46:07','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					\'27547\',\n					\'RS\',\n					\'9.13\',\n					\'60\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-27\'\n				)'),('2019-08-27 11:46:07','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					\'27547\',\n					\'LN\',\n					\'11.47\',\n					\'60\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-27\'\n				)'),('2019-08-27 11:46:07','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					\'27547\',\n					\'SW\',\n					\'8.72\',\n					\'60\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-27\'\n				)'),('2019-08-27 11:46:17','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27044\')\n			WHERE orderno= \'27547\''),('2019-08-27 11:46: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									\'27044\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-08-28\',\n									\'2019-08-27 11-46-17\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27547\',\n									\'1759.2\',\n									\'158.33\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-27 11:46:17','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34175\',\n									\'1\',\n									\'158.328\')'),('2019-08-27 11:46:17','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 60,\n								actualdispatchdate = \'2019-08-28\',\n								completed=1\n							WHERE orderno = \'27547\'\n							AND orderlineno = \'0\''),('2019-08-27 11:46:17','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 60\n						WHERE locstock.stockid = \'RS\'\n						AND loccode = \'AN\''),('2019-08-27 11:46: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 (\'RS\',\n														10,\n														\'27044\',\n														\'AN\',\n														\'2019-08-28\',\n														\'TM020\',\n														\'R010\',\n														\'9.13\',\n														\'93\',\n														\'27547\',\n														\'-60\',\n														\'0\',\n														\'0.0000\',\n														\'-19931.99\',\n														\'\' )'),('2019-08-27 11:46:17','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56815\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-27 11:46: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										\'547.8\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'60\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-27 11:46:17','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27044\',\n											\'2019-08-28\',\n											\'93\',\n											\'4100\',\n											\'TM020 - RS x 60 @ 9.13\',\n											\'-547.8\')'),('2019-08-27 11:46:17','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 60,\n								actualdispatchdate = \'2019-08-28\',\n								completed=1\n							WHERE orderno = \'27547\'\n							AND orderlineno = \'1\''),('2019-08-27 11:46:17','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 60\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-08-27 11:46: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 (\'LN\',\n														10,\n														\'27044\',\n														\'AN\',\n														\'2019-08-28\',\n														\'TM020\',\n														\'R010\',\n														\'11.47\',\n														\'93\',\n														\'27547\',\n														\'-60\',\n														\'0\',\n														\'0.0000\',\n														\'-259613.86\',\n														\'\' )'),('2019-08-27 11:46:17','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56816\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-27 11:46: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										\'688.2\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'60\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-27 11:46:17','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27044\',\n											\'2019-08-28\',\n											\'93\',\n											\'4100\',\n											\'TM020 - LN x 60 @ 11.47\',\n											\'-688.2\')'),('2019-08-27 11:46:17','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 60,\n								actualdispatchdate = \'2019-08-28\',\n								completed=1\n							WHERE orderno = \'27547\'\n							AND orderlineno = \'2\''),('2019-08-27 11:46:17','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 60\n						WHERE locstock.stockid = \'SW\'\n						AND loccode = \'AN\''),('2019-08-27 11:46: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 (\'SW\',\n														10,\n														\'27044\',\n														\'AN\',\n														\'2019-08-28\',\n														\'TM020\',\n														\'R010\',\n														\'8.72\',\n														\'93\',\n														\'27547\',\n														\'-60\',\n														\'0\',\n														\'0.0000\',\n														\'-9817.47\',\n														\'\' )'),('2019-08-27 11:46:17','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56817\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-27 11:46: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										\'523.2\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'60\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-27 11:46:17','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27044\',\n											\'2019-08-28\',\n											\'93\',\n											\'4100\',\n											\'TM020 - SW x 60 @ 8.72\',\n											\'-523.2\')'),('2019-08-27 11:46:17','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27044\',\n										\'2019-08-28\',\n										\'93\',\n										\'1100\',\n										\'TM020\',\n										\'1917.53\')'),('2019-08-27 11:46:17','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27044\',\n											\'2019-08-28\',\n											\'93\',\n											\'2300\',\n											\'TM020\',\n											\'-158.33\')'),('2019-08-27 11:46:17','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000008526512829121202\n								WHERE counterindex = \'122447\''),('2019-08-27 11:59:03','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2099\',\n								  	\'11\',\n									\'136\',\n									\'136\',\n									\'2019-08-27\',\n									\'2019-08-27 11-59-03\',\n									\'93\',\n									\'DE\',\n									\'-247.56\',\n									\'-22.2804\',\n								  	\'0\',\n									\'1\',\n									\'Inv# 25796 - Goods returned and received by Munaf as confirmed by Munaf\'\n									)'),('2019-08-27 11:59:03','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34176\',\n						\'1\',\n						\'-22.2804\')'),('2019-08-27 11:59:03','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'LF\',\n												11,\n												2099,\n												\'AN\',\n												\'2019-08-27\',\n												\'136\',\n												\'136\',\n												\'13.58\',\n												\'93\',\n												\'18.23\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 25796 - Goods returned and received by Munaf as confirmed by Munaf\',\n												\'-540235.09\',\n												\'\'\n											)'),('2019-08-27 11:59:03','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56818\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-27 11:59:03','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 18.23\n							WHERE locstock.stockid = \'LF\'\n							AND locstock.loccode = \'AN\''),('2019-08-27 11:59:03','jhairud','INSERT 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												\'-247.5634\',\n												\'0\',\n												\'136\',\n												\'136\',\n												\'-18.23\',\n												\'0\',\n												\'LF\',\n												custbranch.area,\n												1,\n												\'fe\',\n												stockmaster.categoryid\n										FROM stockmaster,\n												custbranch\n										WHERE stockmaster.stockid = \'LF\'\n										AND custbranch.debtorno = \'136\'\n										AND custbranch.branchcode=\'136\''),('2019-08-27 11:59:03','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2099\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'136 - LF x 18.23 @ 13.58\',\n											\'247.5634\'\n											)'),('2019-08-27 11:59:03','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2099\',\n								\'2019-08-27\',\n								\'93\',\n								\'1100\',\n								\'136\',\n								\'-269.8404\')'),('2019-08-27 11:59:03','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2099\',\n											\'2019-08-27\',\n											\'93\',\n											\'2300\',\n											\'136\',\n											\'22.2804\')'),('2019-08-27 11:59:03','jhairud','UPDATE gltrans SET amount = amount - 0.0034000000000133923\n								WHERE counterindex = \'122452\''),('2019-08-27 12:30:55','jhairud','INSERT INTO debtortrans (transno,\n							 		type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									tpe,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext)\n								  VALUES (\'2100\',\n								  	\'11\',\n									\'136\',\n									\'136\',\n									\'2019-08-27\',\n									\'2019-08-27 12-30-55\',\n									\'93\',\n									\'DE\',\n									\'-4210.93\',\n									\'-378.9837\',\n								  	\'0\',\n									\'1\',\n									\'Inv# 24818 Goods returned and received by Munaf as confirmed by Munaf\'\n									)'),('2019-08-27 12:30:55','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34177\',\n						\'1\',\n						\'-378.9837\')'),('2019-08-27 12:30:55','jhairud','INSERT INTO stockmoves (stockid,\n												type,\n												transno,\n												loccode,\n												trandate,\n												debtorno,\n												branchcode,\n												price,\n												prd,\n												qty,\n												discountpercent,\n												standardcost,\n												reference,\n												newqoh,\n												narrative)\n											VALUES (\n												\'LF\',\n												11,\n												2100,\n												\'AN\',\n												\'2019-08-27\',\n												\'136\',\n												\'136\',\n												\'16.06\',\n												\'93\',\n												\'262.20\',\n												\'0\',\n												\'0.0000\',\n												\'Inv# 24818 Goods returned and received by Munaf as confirmed by Munaf\',\n												\'-539972.89\',\n												\'\'\n											)'),('2019-08-27 12:30:55','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n										taxauthid,\n										taxrate,\n										taxcalculationorder,\n										taxontax)\n							VALUES (\'56819\',\n								\'1\',\n								\'0.09\',\n								\'1\',\n								\'0\')'),('2019-08-27 12:30:55','jhairud','UPDATE locstock\n							SET locstock.quantity = locstock.quantity + 262.20\n							WHERE locstock.stockid = \'LF\'\n							AND locstock.loccode = \'AN\''),('2019-08-27 12:30:55','jhairud','UPDATE salesanalysis SET Amt=Amt-4210.932,\n													Cost=Cost-0,\n													Qty=Qty-262.20,\n													Disc=Disc-0\n							WHERE salesanalysis.area=\'123\'\n							AND salesanalysis.salesperson=\'fe\'\n							AND salesanalysis.typeabbrev =\'DE\'\n							AND salesanalysis.periodno = \'93\'\n							AND salesanalysis.cust = \'136\'\n							AND salesanalysis.custbranch = \'136\'\n							AND salesanalysis.stockid = \'LF\'\n							AND salesanalysis.stkcategory =\'FOOD\'\n							AND salesanalysis.budgetoractual=1'),('2019-08-27 12:30:55','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount)\n										VALUES (11,\n											\'2100\',\n											\'2019-08-27\',\n											\'93\',\n											\'4100\',\n											\'136 - LF x 262.20 @ 16.06\',\n											\'4210.932\'\n											)'),('2019-08-27 12:30:55','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n							VALUES (11,\n								\'2100\',\n								\'2019-08-27\',\n								\'93\',\n								\'1100\',\n								\'136\',\n								\'-4589.9137\')'),('2019-08-27 12:30:55','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount )\n										VALUES (11,\n											\'2100\',\n											\'2019-08-27\',\n											\'93\',\n											\'2300\',\n											\'136\',\n											\'378.9837\')'),('2019-08-27 12:30:55','jhairud','UPDATE gltrans SET amount = amount - 0.0019999999997253326\n								WHERE counterindex = \'122455\''),('2019-08-27 14:26:03','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'4589.91\',\n								\'34177\',\n								\'31153\'\n							)'),('2019-08-27 14:26:03','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'15895.94\',\n						settled = \'0\'\n						WHERE id = \'31153\''),('2019-08-27 14:26:03','jhairud','UPDATE debtortrans\n				SET alloc = \'-4589.91\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34177\''),('2019-08-27 14:26:33','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'269.84\',\n								\'34176\',\n								\'32457\'\n							)'),('2019-08-27 14:26:33','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'313.5\',\n						settled = \'0\'\n						WHERE id = \'32457\''),('2019-08-27 14:26:33','jhairud','UPDATE debtortrans\n				SET alloc = \'-269.84\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34176\''),('2019-08-27 14:44:10','jhairud','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								\'27548\',\n								\'L015\',\n								\'L015\',\n								\'84201-013410\',\n								\'\',\n								\'2019-08-27 14:44\',\n								\'DE\',\n								\'10\',\n								\'LAUTOKA HOSPITAL\',\n								\'Lautoka\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-28\',\n								\'2019-08-28\',\n								\'2019-08-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-27 14:44:10','jhairud','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					\'27548\',\n					\'RS\',\n					\'9.13\',\n					\'53\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-27\'\n				)'),('2019-08-27 14:44:42','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27045\')\n			WHERE orderno= \'27548\''),('2019-08-27 14:44:42','jhairud','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									\'27045\',\n									10,\n									\'L015\',\n									\'L015\',\n									\'2019-08-28\',\n									\'2019-08-27 14-44-42\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27548\',\n									\'483.89\',\n									\'43.55\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'84201-013410\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-27 14:44:42','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34178\',\n									\'1\',\n									\'43.5501\')'),('2019-08-27 14:44:42','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 53,\n								actualdispatchdate = \'2019-08-28\',\n								completed=1\n							WHERE orderno = \'27548\'\n							AND orderlineno = \'0\''),('2019-08-27 14:44:42','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 53\n						WHERE locstock.stockid = \'RS\'\n						AND loccode = \'AN\''),('2019-08-27 14:44:42','jhairud','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														\'27045\',\n														\'AN\',\n														\'2019-08-28\',\n														\'L015\',\n														\'L015\',\n														\'9.13\',\n														\'93\',\n														\'27548\',\n														\'-53\',\n														\'0\',\n														\'0.0000\',\n														\'-19984.99\',\n														\'\' )'),('2019-08-27 14:44:42','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56820\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-27 14:44:42','jhairud','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										\'483.89\',\n										\'0\',\n										\'L015\',\n										\'L015\',\n										\'53\',\n										\'0\',\n										\'RS\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RS\'\n								AND custbranch.debtorno = \'L015\'\n								AND custbranch.branchcode=\'L015\''),('2019-08-27 14:44:42','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27045\',\n											\'2019-08-28\',\n											\'93\',\n											\'4100\',\n											\'L015 - RS x 53 @ 9.13\',\n											\'-483.89\')'),('2019-08-27 14:44:42','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27045\',\n										\'2019-08-28\',\n										\'93\',\n										\'1100\',\n										\'L015\',\n										\'527.44\')'),('2019-08-27 14:44:42','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27045\',\n											\'2019-08-28\',\n											\'93\',\n											\'2300\',\n											\'L015\',\n											\'-43.55\')'),('2019-08-27 14:44:42','jhairud','UPDATE gltrans SET amount = amount - 0.00000000000007105427357601002\n								WHERE counterindex = \'122458\''),('2019-08-27 15:51:14','jhairud','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								\'27549\',\n								\'98\',\n								\'98\',\n								\'\',\n								\'\',\n								\'2019-08-27 15:51\',\n								\'DE\',\n								\'1\',\n								\'WEST MEAT\',\n								\'LAUTOKA\',\n								\'\',\n								\'CITY\',\n								\'\',\n								\'\',\n								\'Fiji\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-28\',\n								\'2019-08-28\',\n								\'2019-08-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-27 15:51:14','jhairud','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					\'27549\',\n					\'LCPS\',\n					\'14.50\',\n					\'198.02\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-27\'\n				)'),('2019-08-27 15:51:14','jhairud','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					\'27549\',\n					\'LF\',\n					\'18.35\',\n					\'108.6\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-27\'\n				)'),('2019-08-27 15:51:25','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27046\')\n			WHERE orderno= \'27549\''),('2019-08-27 15:51:25','jhairud','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									\'27046\',\n									10,\n									\'98\',\n									\'98\',\n									\'2019-08-28\',\n									\'2019-08-27 15-51-25\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27549\',\n									\'4864.1\',\n									\'437.77\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-27 15:51:25','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34179\',\n									\'1\',\n									\'437.769\')'),('2019-08-27 15:51:25','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 198.02,\n								actualdispatchdate = \'2019-08-28\',\n								completed=1\n							WHERE orderno = \'27549\'\n							AND orderlineno = \'0\''),('2019-08-27 15:51:25','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 198.02\n						WHERE locstock.stockid = \'LCPS\'\n						AND loccode = \'AN\''),('2019-08-27 15:51:25','jhairud','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														\'27046\',\n														\'AN\',\n														\'2019-08-28\',\n														\'98\',\n														\'98\',\n														\'14.5\',\n														\'93\',\n														\'27549\',\n														\'-198.02\',\n														\'0\',\n														\'0.0000\',\n														\'-46156.91\',\n														\'\' )'),('2019-08-27 15:51:25','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56821\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-27 15:51:25','jhairud','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										\'2871.29\',\n										\'0\',\n										\'98\',\n										\'98\',\n										\'198.02\',\n										\'0\',\n										\'LCPS\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LCPS\'\n								AND custbranch.debtorno = \'98\'\n								AND custbranch.branchcode=\'98\''),('2019-08-27 15:51:25','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27046\',\n											\'2019-08-28\',\n											\'93\',\n											\'4100\',\n											\'98 - LCPS x 198.02 @ 14.5\',\n											\'-2871.29\')'),('2019-08-27 15:51:25','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 108.6,\n								actualdispatchdate = \'2019-08-28\',\n								completed=1\n							WHERE orderno = \'27549\'\n							AND orderlineno = \'1\''),('2019-08-27 15:51:25','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 108.6\n						WHERE locstock.stockid = \'LF\'\n						AND loccode = \'AN\''),('2019-08-27 15:51:25','jhairud','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														\'27046\',\n														\'AN\',\n														\'2019-08-28\',\n														\'98\',\n														\'98\',\n														\'18.35\',\n														\'93\',\n														\'27549\',\n														\'-108.6\',\n														\'0\',\n														\'0.0000\',\n														\'-540081.49\',\n														\'\' )'),('2019-08-27 15:51:25','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56822\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-27 15:51:25','jhairud','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										\'1992.81\',\n										\'0\',\n										\'98\',\n										\'98\',\n										\'108.6\',\n										\'0\',\n										\'LF\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LF\'\n								AND custbranch.debtorno = \'98\'\n								AND custbranch.branchcode=\'98\''),('2019-08-27 15:51:25','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27046\',\n											\'2019-08-28\',\n											\'93\',\n											\'4100\',\n											\'98 - LF x 108.6 @ 18.35\',\n											\'-1992.81\')'),('2019-08-27 15:51:25','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27046\',\n										\'2019-08-28\',\n										\'93\',\n										\'1100\',\n										\'98\',\n										\'5301.87\')'),('2019-08-27 15:51:25','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27046\',\n											\'2019-08-28\',\n											\'93\',\n											\'2300\',\n											\'98\',\n											\'-437.77\')'),('2019-08-27 15:51:25','jhairud','UPDATE gltrans SET amount = amount - -0.0000000000004547473508864641\n								WHERE counterindex = \'122461\''),('2019-08-27 15:56:02','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						\'4706\',\n						12,\n						\'TM009\',\n						\'\',\n						\'2019-08-27\',\n						\'2019-08-27 15-56-02\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-965.96\',\n						\'0\',\n						\'ANZ# 7970\'\n					)'),('2019-08-27 15:56:02','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-27\',\n						lastpaid=\'965.96\'\n					WHERE debtorsmaster.debtorno=\'TM009\''),('2019-08-27 15:56:02','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			\'4706\',\n			\'1100\',\n			\'ANZ# 7970\',\n			\'1\',\n			\'1\',\n			\'2019-08-27\',\n			\'Cheque\',\n			\'965.96\',\n			\'FJD\'\n		)'),('2019-08-27 15:56:02','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4706\',\n					\'2019-08-27\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 7970\',\n					\'965.96\'\n				)'),('2019-08-27 15:56:02','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4706\',\n							\'2019-08-27\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 7970\',\n							\'-965.96\'\n							)'),('2019-08-27 15:57:02','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						\'4707\',\n						12,\n						\'TM009\',\n						\'\',\n						\'2019-08-27\',\n						\'2019-08-27 15-57-02\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-2048.77\',\n						\'0\',\n						\'ANZ# 8065\'\n					)'),('2019-08-27 15:57:02','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-27\',\n						lastpaid=\'2048.77\'\n					WHERE debtorsmaster.debtorno=\'TM009\''),('2019-08-27 15:57:02','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			\'4707\',\n			\'1100\',\n			\'ANZ# 8065\',\n			\'1\',\n			\'1\',\n			\'2019-08-27\',\n			\'Cheque\',\n			\'2048.77\',\n			\'FJD\'\n		)'),('2019-08-27 15:57:02','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4707\',\n					\'2019-08-27\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 8065\',\n					\'2048.77\'\n				)'),('2019-08-27 15:57:02','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4707\',\n							\'2019-08-27\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 8065\',\n							\'-2048.77\'\n							)'),('2019-08-27 15:59:39','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'275.99\',\n								\'34180\',\n								\'33556\'\n							)'),('2019-08-27 15:59:39','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'275.99\',\n						settled = \'1\'\n						WHERE id = \'33556\''),('2019-08-27 15:59:39','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'551.98\',\n								\'34180\',\n								\'33640\'\n							)'),('2019-08-27 15:59:39','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'551.98\',\n						settled = \'1\'\n						WHERE id = \'33640\''),('2019-08-27 15:59:39','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'137.99\',\n								\'34180\',\n								\'33760\'\n							)'),('2019-08-27 15:59:39','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'137.99\',\n						settled = \'1\'\n						WHERE id = \'33760\''),('2019-08-27 15:59:39','jhairud','UPDATE debtortrans\n				SET alloc = \'-965.96\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34180\''),('2019-08-27 16:03:44','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'275.99\',\n								\'34181\',\n								\'33856\'\n							)'),('2019-08-27 16:03:44','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'275.99\',\n						settled = \'1\'\n						WHERE id = \'33856\''),('2019-08-27 16:03:44','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'551.98\',\n								\'34181\',\n								\'33878\'\n							)'),('2019-08-27 16:03:44','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'551.98\',\n						settled = \'1\'\n						WHERE id = \'33878\''),('2019-08-27 16:03:44','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'610.4\',\n								\'34181\',\n								\'33939\'\n							)'),('2019-08-27 16:03:44','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'610.4\',\n						settled = \'1\'\n						WHERE id = \'33939\''),('2019-08-27 16:03:44','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-27\',\n								\'610.4\',\n								\'34181\',\n								\'33986\'\n							)'),('2019-08-27 16:03:44','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'610.4\',\n						settled = \'1\'\n						WHERE id = \'33986\''),('2019-08-27 16:03:44','jhairud','UPDATE debtortrans\n				SET alloc = \'-2048.77\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34181\''),('2019-08-28 08:36:43','zaabed','UPDATE config SET confvalue = \'2019-08-28\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-28 09:37: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								\'27550\',\n								\'TM092\',\n								\'T031\',\n								\'448226m masala\',\n								\'\',\n								\'2019-08-28 09:37\',\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-29\',\n								\'2019-08-29\',\n								\'2019-08-29\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-28 09:37: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					\'27550\',\n					\'LPP\',\n					\'18.35\',\n					\'30\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-28\'\n				)'),('2019-08-28 09:38:04','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27047\')\n			WHERE orderno= \'27550\''),('2019-08-28 09:38: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									\'27047\',\n									10,\n									\'TM092\',\n									\'T031\',\n									\'2019-08-29\',\n									\'2019-08-28 09-38-04\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27550\',\n									\'550.5\',\n									\'49.55\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-28 09:38:04','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34182\',\n									\'1\',\n									\'49.545\')'),('2019-08-28 09:38:04','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30,\n								actualdispatchdate = \'2019-08-29\',\n								completed=1\n							WHERE orderno = \'27550\'\n							AND orderlineno = \'0\''),('2019-08-28 09:38:04','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 30\n						WHERE locstock.stockid = \'LPP\'\n						AND loccode = \'AN\''),('2019-08-28 09:38: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 (\'LPP\',\n														10,\n														\'27047\',\n														\'AN\',\n														\'2019-08-29\',\n														\'TM092\',\n														\'T031\',\n														\'18.35\',\n														\'93\',\n														\'27550\',\n														\'-30\',\n														\'0\',\n														\'0.0000\',\n														\'-58593.52\',\n														\'\' )'),('2019-08-28 09:38:04','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56823\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-28 09:38: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										\'550.5\',\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-28 09:38:04','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27047\',\n											\'2019-08-29\',\n											\'93\',\n											\'4100\',\n											\'TM092 - LPP x 30 @ 18.35\',\n											\'-550.5\')'),('2019-08-28 09:38:04','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27047\',\n										\'2019-08-29\',\n										\'93\',\n										\'1100\',\n										\'TM092\',\n										\'600.05\')'),('2019-08-28 09:38:04','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27047\',\n											\'2019-08-29\',\n											\'93\',\n											\'2300\',\n											\'TM092\',\n											\'-49.55\')'),('2019-08-28 10:47: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								\'27551\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-08-28 10:47\',\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-29\',\n								\'2019-08-29\',\n								\'2019-08-29\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-28 10:47: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					\'27551\',\n					\'LM500\',\n					\'17.43\',\n					\'45\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-28\'\n				)'),('2019-08-28 10:47:32','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27048\')\n			WHERE orderno= \'27551\''),('2019-08-28 10:47:32','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									\'27048\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-29\',\n									\'2019-08-28 10-47-32\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27551\',\n									\'784.35\',\n									\'70.59\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-28 10:47:32','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34183\',\n									\'1\',\n									\'70.5915\')'),('2019-08-28 10:47:32','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 45,\n								actualdispatchdate = \'2019-08-29\',\n								completed=1\n							WHERE orderno = \'27551\'\n							AND orderlineno = \'0\''),('2019-08-28 10:47:32','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 45\n						WHERE locstock.stockid = \'LM500\'\n						AND loccode = \'AN\''),('2019-08-28 10:47:32','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 (\'LM500\',\n														10,\n														\'27048\',\n														\'AN\',\n														\'2019-08-29\',\n														\'TM044\',\n														\'C008\',\n														\'17.43\',\n														\'93\',\n														\'27551\',\n														\'-45\',\n														\'0\',\n														\'0.0000\',\n														\'-2461.7\',\n														\'\' )'),('2019-08-28 10:47:32','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56824\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-28 10:47:32','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										\'784.35\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'45\',\n										\'0\',\n										\'LM500\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LM500\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-28 10:47:32','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27048\',\n											\'2019-08-29\',\n											\'93\',\n											\'4100\',\n											\'TM044 - LM500 x 45 @ 17.43\',\n											\'-784.35\')'),('2019-08-28 10:47:32','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27048\',\n										\'2019-08-29\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'854.94\')'),('2019-08-28 10:47:32','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27048\',\n											\'2019-08-29\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-70.59\')'),('2019-08-28 10:51:32','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								\'27552\',\n								\'TM074\',\n								\'P001\',\n								\'sport/c\',\n								\'\',\n								\'2019-08-28 10:51\',\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-29\',\n								\'2019-08-29\',\n								\'2019-08-29\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-28 10:51:32','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					\'27552\',\n					\'MBT\',\n					\'9.50\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-28\'\n				)'),('2019-08-28 10:52:00','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27049\')\n			WHERE orderno= \'27552\''),('2019-08-28 10:52: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									\'27049\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-29\',\n									\'2019-08-28 10-52-00\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27552\',\n									\'190\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-28 10:52:00','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34184\',\n									\'1\',\n									\'0\')'),('2019-08-28 10:52:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-29\',\n								completed=1\n							WHERE orderno = \'27552\'\n							AND orderlineno = \'0\''),('2019-08-28 10:52:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-28 10:52: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 (\'MBT\',\n														10,\n														\'27049\',\n														\'AN\',\n														\'2019-08-29\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27552\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-7362.6\',\n														\'\' )'),('2019-08-28 10:52:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56825\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-28 10:52: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										\'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-28 10:52:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27049\',\n											\'2019-08-29\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 20 @ 9.5\',\n											\'-190\')'),('2019-08-28 10:52:00','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27049\',\n										\'2019-08-29\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'190\')'),('2019-08-28 11:12:37','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								\'27553\',\n								\'N007\',\n								\'N007\',\n								\'019017\',\n								\'\',\n								\'2019-08-28 11:12\',\n								\'DE\',\n								\'1\',\n								\'NASINU SECONDARY SCHOOL\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-29\',\n								\'2019-08-29\',\n								\'2019-08-29\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-28 11:12:37','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					\'27553\',\n					\'CHICKEN\',\n					\'13.76\',\n					\'20\',\n					\'0\',\n					\'boneless\',\n					\'\',\n					\'2019-08-28\'\n				)'),('2019-08-28 11:12:48','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27050\')\n			WHERE orderno= \'27553\''),('2019-08-28 11:12: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									\'27050\',\n									10,\n									\'N007\',\n									\'N007\',\n									\'2019-08-29\',\n									\'2019-08-28 11-12-48\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27553\',\n									\'275.2\',\n									\'24.77\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-28 11:12:48','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34185\',\n									\'1\',\n									\'24.768\')'),('2019-08-28 11:12:48','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-29\',\n								completed=1\n							WHERE orderno = \'27553\'\n							AND orderlineno = \'0\''),('2019-08-28 11:12:48','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-28 11:12: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 (\'CHICKEN\',\n														10,\n														\'27050\',\n														\'AN\',\n														\'2019-08-29\',\n														\'N007\',\n														\'N007\',\n														\'13.76\',\n														\'93\',\n														\'27553\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-87577.22\',\n														\'boneless\' )'),('2019-08-28 11:12:48','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56826\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-28 11:12: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										\'275.2\',\n										\'0\',\n										\'N007\',\n										\'N007\',\n										\'20\',\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 = \'N007\'\n								AND custbranch.branchcode=\'N007\''),('2019-08-28 11:12:48','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27050\',\n											\'2019-08-29\',\n											\'93\',\n											\'4100\',\n											\'N007 - CHICKEN x 20 @ 13.76\',\n											\'-275.2\')'),('2019-08-28 11:12:48','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27050\',\n										\'2019-08-29\',\n										\'93\',\n										\'1100\',\n										\'N007\',\n										\'299.97\')'),('2019-08-28 11:12:48','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27050\',\n											\'2019-08-29\',\n											\'93\',\n											\'2300\',\n											\'N007\',\n											\'-24.77\')'),('2019-08-28 11:12:48','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000003907985046680551\n								WHERE counterindex = \'122477\''),('2019-08-28 11:24: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								\'27554\',\n								\'TM074\',\n								\'P001\',\n								\'Nakasi\',\n								\'\',\n								\'2019-08-28 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-29\',\n								\'2019-08-29\',\n								\'2019-08-29\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-28 11:24: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					\'27554\',\n					\'SF500G\',\n					\'16.40\',\n					\'2.95\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-28\'\n				)'),('2019-08-28 11:24: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					\'27554\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-28\'\n				)'),('2019-08-28 11:24: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					\'27554\',\n					\'MBT\',\n					\'9.50\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-28\'\n				)'),('2019-08-28 11:25:03','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27051\')\n			WHERE orderno= \'27554\''),('2019-08-28 11:25: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									\'27051\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-29\',\n									\'2019-08-28 11-25-03\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27554\',\n									\'567.08\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-28 11:25:03','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34186\',\n									\'1\',\n									\'33.858\')'),('2019-08-28 11:25:03','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2.95,\n								actualdispatchdate = \'2019-08-29\',\n								completed=1\n							WHERE orderno = \'27554\'\n							AND orderlineno = \'0\''),('2019-08-28 11:25:03','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2.95\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-28 11:25: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 (\'SF500G\',\n														10,\n														\'27051\',\n														\'AN\',\n														\'2019-08-29\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27554\',\n														\'-2.95\',\n														\'0\',\n														\'0.0000\',\n														\'-9622.431\',\n														\'\' )'),('2019-08-28 11:25:03','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56827\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-28 11:25: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										\'48.38\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'2.95\',\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-28 11:25:03','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27051\',\n											\'2019-08-29\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 2.95 @ 16.4\',\n											\'-48.38\')'),('2019-08-28 11:25:03','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-29\',\n								completed=1\n							WHERE orderno = \'27554\'\n							AND orderlineno = \'1\''),('2019-08-28 11:25:03','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-28 11:25: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														\'27051\',\n														\'AN\',\n														\'2019-08-29\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27554\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306543.65\',\n														\'\' )'),('2019-08-28 11:25:03','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56828\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-28 11:25: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										\'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-28 11:25:03','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27051\',\n											\'2019-08-29\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-28 11:25:03','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-29\',\n								completed=1\n							WHERE orderno = \'27554\'\n							AND orderlineno = \'2\''),('2019-08-28 11:25:03','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-28 11:25: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 (\'MBT\',\n														10,\n														\'27051\',\n														\'AN\',\n														\'2019-08-29\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27554\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-7377.6\',\n														\'\' )'),('2019-08-28 11:25:03','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56829\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-28 11:25: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										\'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-28 11:25:03','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27051\',\n											\'2019-08-29\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 15 @ 9.5\',\n											\'-142.5\')'),('2019-08-28 11:25:03','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27051\',\n										\'2019-08-29\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'600.94\')'),('2019-08-28 11:25:03','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27051\',\n											\'2019-08-29\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-08-28 11:25:03','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000012789769243681803\n								WHERE counterindex = \'122480\''),('2019-08-28 11:56: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								\'27555\',\n								\'154\',\n								\'154\',\n								\'83201-019972\',\n								\'\',\n								\'2019-08-28 11:56\',\n								\'DE\',\n								\'1\',\n								\'LABASA HOSPITAL\',\n								\'LABASA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-29\',\n								\'2019-08-29\',\n								\'2019-08-29\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-28 11:56: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					\'27555\',\n					\'CHICKEN\',\n					\'121.89\',\n					\'25\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-28\'\n				)'),('2019-08-28 11:57:06','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27052\')\n			WHERE orderno= \'27555\''),('2019-08-28 11:57: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									\'27052\',\n									10,\n									\'154\',\n									\'154\',\n									\'2019-08-29\',\n									\'2019-08-28 11-57-06\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27555\',\n									\'3047.25\',\n									\'274.25\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-28 11:57:06','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34187\',\n									\'1\',\n									\'274.2525\')'),('2019-08-28 11:57:06','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 25,\n								actualdispatchdate = \'2019-08-29\',\n								completed=1\n							WHERE orderno = \'27555\'\n							AND orderlineno = \'0\''),('2019-08-28 11:57:06','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 25\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-28 11:57: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 (\'CHICKEN\',\n														10,\n														\'27052\',\n														\'AN\',\n														\'2019-08-29\',\n														\'154\',\n														\'154\',\n														\'121.89\',\n														\'93\',\n														\'27555\',\n														\'-25\',\n														\'0\',\n														\'0.0000\',\n														\'-87602.22\',\n														\'\' )'),('2019-08-28 11:57:06','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56830\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-28 11:57: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										\'3047.25\',\n										\'0\',\n										\'154\',\n										\'154\',\n										\'25\',\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 = \'154\'\n								AND custbranch.branchcode=\'154\''),('2019-08-28 11:57:06','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27052\',\n											\'2019-08-29\',\n											\'93\',\n											\'4100\',\n											\'154 - CHICKEN x 25 @ 121.89\',\n											\'-3047.25\')'),('2019-08-28 11:57:06','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27052\',\n										\'2019-08-29\',\n										\'93\',\n										\'1100\',\n										\'154\',\n										\'3321.5\')'),('2019-08-28 11:57:06','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27052\',\n											\'2019-08-29\',\n											\'93\',\n											\'2300\',\n											\'154\',\n											\'-274.25\')'),('2019-08-28 12:10:41','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						\'4708\',\n						12,\n						\'136\',\n						\'\',\n						\'2019-08-28\',\n						\'2019-08-28 12-10-41\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-27955.99\',\n						\'0\',\n						\'HFC# 826524\'\n					)'),('2019-08-28 12:10:41','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-28\',\n						lastpaid=\'27955.99\'\n					WHERE debtorsmaster.debtorno=\'136\''),('2019-08-28 12:10:41','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			\'4708\',\n			\'1100\',\n			\'HFC# 826524\',\n			\'1\',\n			\'1\',\n			\'2019-08-28\',\n			\'Cheque\',\n			\'27955.99\',\n			\'FJD\'\n		)'),('2019-08-28 12:10:41','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4708\',\n					\'2019-08-28\',\n					\'93\',\n					\'1100\',\n					\'HFC# 826524\',\n					\'27955.99\'\n				)'),('2019-08-28 12:10:41','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4708\',\n							\'2019-08-28\',\n							\'93\',\n							\'1100\',\n							\'HFC# 826524\',\n							\'-27955.99\'\n							)'),('2019-08-28 12:11:42','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-28\',\n								\'0.01\',\n								\'34188\',\n								\'31153\'\n							)'),('2019-08-28 12:11:42','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'15895.95\',\n						settled = \'1\'\n						WHERE id = \'31153\''),('2019-08-28 12:11:42','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-28\',\n								\'0.03\',\n								\'34188\',\n								\'32457\'\n							)'),('2019-08-28 12:11:42','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'313.53\',\n						settled = \'1\'\n						WHERE id = \'32457\''),('2019-08-28 12:11:42','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-28\',\n								\'274.13\',\n								\'34188\',\n								\'33407\'\n							)'),('2019-08-28 12:11:42','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'274.13\',\n						settled = \'1\'\n						WHERE id = \'33407\''),('2019-08-28 12:11:42','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-28\',\n								\'436.59\',\n								\'34188\',\n								\'33410\'\n							)'),('2019-08-28 12:11:42','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'436.59\',\n						settled = \'1\'\n						WHERE id = \'33410\''),('2019-08-28 12:11:42','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-28\',\n								\'19630.73\',\n								\'34188\',\n								\'33437\'\n							)'),('2019-08-28 12:11:42','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'19630.73\',\n						settled = \'1\'\n						WHERE id = \'33437\''),('2019-08-28 12:11:42','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-28\',\n								\'7614.5\',\n								\'34188\',\n								\'33482\'\n							)'),('2019-08-28 12:11:42','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'7614.5\',\n						settled = \'1\'\n						WHERE id = \'33482\''),('2019-08-28 12:11:42','jhairud','UPDATE debtortrans\n				SET alloc = \'-27955.99\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34188\''),('2019-08-28 13:49:35','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								\'27556\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-08-28 13:49\',\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-29\',\n								\'2019-08-29\',\n								\'2019-08-29\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-28 13:49:35','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					\'27556\',\n					\'LC\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-28\'\n				)'),('2019-08-28 13:49:35','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					\'27556\',\n					\'FISH\',\n					\'12\',\n					\'28.7\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-28\'\n				)'),('2019-08-28 13:49:41','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27053\')\n			WHERE orderno= \'27556\''),('2019-08-28 13:49:41','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									\'27053\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-29\',\n									\'2019-08-28 13-49-41\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27556\',\n									\'720.6\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-28 13:49:41','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34189\',\n									\'1\',\n									\'33.858\')'),('2019-08-28 13:49:41','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-29\',\n								completed=1\n							WHERE orderno = \'27556\'\n							AND orderlineno = \'0\''),('2019-08-28 13:49:41','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'LC\'\n						AND loccode = \'AN\''),('2019-08-28 13:49:41','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 (\'LC\',\n														10,\n														\'27053\',\n														\'AN\',\n														\'2019-08-29\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'93\',\n														\'27556\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-7199.98\',\n														\'\' )'),('2019-08-28 13:49:41','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56831\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-28 13:49:41','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										\'LC\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LC\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-28 13:49:41','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27053\',\n											\'2019-08-29\',\n											\'93\',\n											\'4100\',\n											\'TM044 - LC x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-28 13:49:41','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 28.7,\n								actualdispatchdate = \'2019-08-29\',\n								completed=1\n							WHERE orderno = \'27556\'\n							AND orderlineno = \'1\''),('2019-08-28 13:49:41','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 28.7\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-28 13:49:41','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														\'27053\',\n														\'AN\',\n														\'2019-08-29\',\n														\'TM044\',\n														\'C008\',\n														\'12\',\n														\'93\',\n														\'27556\',\n														\'-28.7\',\n														\'0\',\n														\'0.0000\',\n														\'-45333.8701\',\n														\'marlin\' )'),('2019-08-28 13:49:41','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56832\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-28 13:49:41','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.4\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'28.7\',\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-28 13:49:41','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27053\',\n											\'2019-08-29\',\n											\'93\',\n											\'4100\',\n											\'TM044 - FISH x 28.7 @ 12\',\n											\'-344.4\')'),('2019-08-28 13:49:41','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27053\',\n										\'2019-08-29\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'754.46\')'),('2019-08-28 13:49:41','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27053\',\n											\'2019-08-29\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-33.86\')'),('2019-08-28 13:49:41','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000012789769243681803\n								WHERE counterindex = \'122490\''),('2019-08-29 08:51:34','jhairud','UPDATE config SET confvalue = \'2019-08-29\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-29 11:18: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								\'27557\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-08-29 11:18\',\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-30\',\n								\'2019-08-30\',\n								\'2019-08-30\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-29 11:18: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					\'27557\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-29\'\n				)'),('2019-08-29 11:18:07','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27054\')\n			WHERE orderno= \'27557\''),('2019-08-29 11:18: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									\'27054\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-30\',\n									\'2019-08-29 11-18-07\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27557\',\n									\'376.2\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-29 11:18:07','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34190\',\n									\'1\',\n									\'33.858\')'),('2019-08-29 11:18:07','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-30\',\n								completed=1\n							WHERE orderno = \'27557\'\n							AND orderlineno = \'0\''),('2019-08-29 11:18:07','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-29 11:18: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 (\'CP\',\n														10,\n														\'27054\',\n														\'AN\',\n														\'2019-08-30\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'93\',\n														\'27557\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306563.65\',\n														\'\' )'),('2019-08-29 11:18:07','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56833\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-29 11:18: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										\'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-29 11:18:07','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27054\',\n											\'2019-08-30\',\n											\'93\',\n											\'4100\',\n											\'TM044 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-29 11:18:07','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27054\',\n										\'2019-08-30\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'410.06\')'),('2019-08-29 11:18:07','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27054\',\n											\'2019-08-30\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-33.86\')'),('2019-08-29 11:19: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								\'27558\',\n								\'TM074\',\n								\'P001\',\n								\'centerpoint\',\n								\'\',\n								\'2019-08-29 11:19\',\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-30\',\n								\'2019-08-30\',\n								\'2019-08-30\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-29 11:19: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					\'27558\',\n					\'MBT\',\n					\'9.50\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-29\'\n				)'),('2019-08-29 11:19: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					\'27558\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-29\'\n				)'),('2019-08-29 11:19: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					\'2\',\n					\'27558\',\n					\'LL\',\n					\'25\',\n					\'4.5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-29\'\n				)'),('2019-08-29 11:19: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					\'3\',\n					\'27558\',\n					\'SF500G\',\n					\'16.40\',\n					\'8.8\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-29\'\n				)'),('2019-08-29 11:20:20','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27055\')\n			WHERE orderno= \'27558\''),('2019-08-29 11:20:20','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									\'27055\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-30\',\n									\'2019-08-29 11-20-20\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27558\',\n									\'775.52\',\n									\'43.98\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-29 11:20:20','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34191\',\n									\'1\',\n									\'43.983\')'),('2019-08-29 11:20:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-30\',\n								completed=1\n							WHERE orderno = \'27558\'\n							AND orderlineno = \'0\''),('2019-08-29 11:20:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-29 11:20:20','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														\'27055\',\n														\'AN\',\n														\'2019-08-30\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27558\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-7392.6\',\n														\'\' )'),('2019-08-29 11:20:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56834\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-29 11:20:20','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-29 11:20:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27055\',\n											\'2019-08-30\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 15 @ 9.5\',\n											\'-142.5\')'),('2019-08-29 11:20:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-30\',\n								completed=1\n							WHERE orderno = \'27558\'\n							AND orderlineno = \'1\''),('2019-08-29 11:20:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-29 11:20:20','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														\'27055\',\n														\'AN\',\n														\'2019-08-30\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27558\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306583.65\',\n														\'\' )'),('2019-08-29 11:20:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56835\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-29 11:20:20','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-29 11:20:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27055\',\n											\'2019-08-30\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-29 11:20:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.5,\n								actualdispatchdate = \'2019-08-30\',\n								completed=1\n							WHERE orderno = \'27558\'\n							AND orderlineno = \'2\''),('2019-08-29 11:20:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4.5\n						WHERE locstock.stockid = \'LL\'\n						AND loccode = \'AN\''),('2019-08-29 11:20:20','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														\'27055\',\n														\'AN\',\n														\'2019-08-30\',\n														\'TM074\',\n														\'P001\',\n														\'25\',\n														\'93\',\n														\'27558\',\n														\'-4.5\',\n														\'0\',\n														\'0.0000\',\n														\'-51711.49\',\n														\'\' )'),('2019-08-29 11:20:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56836\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-29 11:20:20','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										\'112.5\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'4.5\',\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-29 11:20:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27055\',\n											\'2019-08-30\',\n											\'93\',\n											\'4100\',\n											\'TM074 - LL x 4.5 @ 25\',\n											\'-112.5\')'),('2019-08-29 11:20:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 8.8,\n								actualdispatchdate = \'2019-08-30\',\n								completed=1\n							WHERE orderno = \'27558\'\n							AND orderlineno = \'3\''),('2019-08-29 11:20:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 8.8\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-29 11:20:20','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														\'27055\',\n														\'AN\',\n														\'2019-08-30\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27558\',\n														\'-8.8\',\n														\'0\',\n														\'0.0000\',\n														\'-9631.231\',\n														\'\' )'),('2019-08-29 11:20:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56837\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-29 11:20:20','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										\'144.32\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'8.8\',\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-29 11:20:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27055\',\n											\'2019-08-30\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 8.8 @ 16.4\',\n											\'-144.32\')'),('2019-08-29 11:20:20','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27055\',\n										\'2019-08-30\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'819.5\')'),('2019-08-29 11:20:20','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27055\',\n											\'2019-08-30\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-43.98\')'),('2019-08-29 11:20:20','zaabed','UPDATE gltrans SET amount = amount - 0.000000000000021316282072803006\n								WHERE counterindex = \'122497\''),('2019-08-30 09:36:36','jhairud','UPDATE config SET confvalue = \'2019-08-30\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-30 11:29:44','jhairud','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								\'27559\',\n								\'TM013\',\n								\'41\',\n								\'KSPN004687\',\n								\'KSPN004687\\\\r\\\\nCorner Bakery\\\\r\\\\nTamavua\',\n								\'2019-08-30 11:29\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'Corner Bakery\',\n								\'Tamavua\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-31\',\n								\'2019-08-31\',\n								\'2019-08-31\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-30 11:29:44','jhairud','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					\'27559\',\n					\'LM\',\n					\'18.34\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-30\'\n				)'),('2019-08-30 11:29:44','jhairud','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					\'27559\',\n					\'BF\',\n					\'14.00\',\n					\'20\',\n					\'0\',\n					\'Diced\',\n					\'\',\n					\'2019-08-30\'\n				)'),('2019-08-30 11:30:00','jhairud','INSERT INTO periods (periodno,\n													lastdate_in_period)\n												VALUES (\n													\'95\',\n													\'2019-10-31\')'),('2019-08-30 11:30:00','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27056\')\n			WHERE orderno= \'27559\''),('2019-08-30 11:30:00','jhairud','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									\'27056\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-31\',\n									\'2019-08-30 11-30-00\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27559\',\n									\'646.8\',\n									\'33.01\',\n									\'0\',\n									\'1\',\n									\'KSPN004687\\r\\nCorner Bakery\\r\\nTamavua\',\n									\'10\',\n									\'KSPN004687 Corn\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-30 11:30:00','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34192\',\n									\'1\',\n									\'33.012\')'),('2019-08-30 11:30:00','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-31\',\n								completed=1\n							WHERE orderno = \'27559\'\n							AND orderlineno = \'0\''),('2019-08-30 11:30:00','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-30 11:30:00','jhairud','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														\'27056\',\n														\'AN\',\n														\'2019-08-31\',\n														\'TM013\',\n														\'41\',\n														\'18.34\',\n														\'93\',\n														\'27559\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-32193.78\',\n														\'\' )'),('2019-08-30 11:30:00','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56838\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-30 11:30:00','jhairud','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										\'366.8\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'20\',\n										\'0\',\n										\'LM\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LM\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-30 11:30:00','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27056\',\n											\'2019-08-31\',\n											\'93\',\n											\'4100\',\n											\'TM013 - LM x 20 @ 18.34\',\n											\'-366.8\')'),('2019-08-30 11:30:00','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-31\',\n								completed=1\n							WHERE orderno = \'27559\'\n							AND orderlineno = \'1\''),('2019-08-30 11:30:00','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'BF\'\n						AND loccode = \'AN\''),('2019-08-30 11:30:00','jhairud','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														\'27056\',\n														\'AN\',\n														\'2019-08-31\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27559\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-6582.71\',\n														\'Diced\' )'),('2019-08-30 11:30:00','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56839\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-30 11:30:00','jhairud','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										\'280\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'20\',\n										\'0\',\n										\'BF\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BF\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-30 11:30:00','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27056\',\n											\'2019-08-31\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BF x 20 @ 14\',\n											\'-280\')'),('2019-08-30 11:30:00','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27056\',\n										\'2019-08-31\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'679.81\')'),('2019-08-30 11:30:00','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27056\',\n											\'2019-08-31\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-33.01\')'),('2019-08-30 11:43:42','jhairud','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								\'27560\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'ONLY DMM\',\n								\'2019-08-30 11:43\',\n								\'DE\',\n								\'10\',\n								\'CURRY HOUSE\',\n								\'SUVA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-31\',\n								\'2019-08-31\',\n								\'2019-08-31\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-30 11:43:42','jhairud','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					\'27560\',\n					\'LM\',\n					\'17.43\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-30\'\n				)'),('2019-08-30 11:44:01','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27057\')\n			WHERE orderno= \'27560\''),('2019-08-30 11:44:01','jhairud','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									\'27057\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-31\',\n									\'2019-08-30 11-44-01\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27560\',\n									\'261.45\',\n									\'23.53\',\n									\'0\',\n									\'1\',\n									\'ONLY DMM\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-30 11:44:01','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34193\',\n									\'1\',\n									\'23.5305\')'),('2019-08-30 11:44:01','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-31\',\n								completed=1\n							WHERE orderno = \'27560\'\n							AND orderlineno = \'0\''),('2019-08-30 11:44:01','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-30 11:44:01','jhairud','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														\'27057\',\n														\'AN\',\n														\'2019-08-31\',\n														\'TM044\',\n														\'C008\',\n														\'17.43\',\n														\'93\',\n														\'27560\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-32208.78\',\n														\'\' )'),('2019-08-30 11:44:01','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56840\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-30 11:44:01','jhairud','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										\'261.45\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'15\',\n										\'0\',\n										\'LM\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LM\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-30 11:44:01','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27057\',\n											\'2019-08-31\',\n											\'93\',\n											\'4100\',\n											\'TM044 - LM x 15 @ 17.43\',\n											\'-261.45\')'),('2019-08-30 11:44:01','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27057\',\n										\'2019-08-31\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'284.98\')'),('2019-08-30 11:44:01','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27057\',\n											\'2019-08-31\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-23.53\')'),('2019-08-30 11:44:01','jhairud','UPDATE gltrans SET amount = amount - 0.00000000000002842170943040401\n								WHERE counterindex = \'122507\''),('2019-08-30 11:49:28','jhairud','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								\'27561\',\n								\'TM074\',\n								\'P001\',\n								\'\',\n								\'\',\n								\'2019-08-30 11:49\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'Sports City\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-31\',\n								\'2019-08-31\',\n								\'2019-08-31\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-30 11:49:28','jhairud','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					\'27561\',\n					\'SF500G\',\n					\'16.40\',\n					\'7.05\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-30\'\n				)'),