('2019-09-20 14:40:42','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'27157\',\n									10,\n									\'95\',\n									\'95\',\n									\'2019-09-21\',\n									\'2019-09-20 14-40-42\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27661\',\n									\'8082\',\n									\'727.38\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-20 14:40:42','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34323\',\n									\'1\',\n									\'727.38\')'),('2019-09-20 14:40:42','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 200,\n								actualdispatchdate = \'2019-09-21\',\n								completed=1\n							WHERE orderno = \'27661\'\n							AND orderlineno = \'0\''),('2019-09-20 14:40:42','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 200\n						WHERE locstock.stockid = \'C001\'\n						AND loccode = \'AN\''),('2019-09-20 14:40:42','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'C001\',\n														10,\n														\'27157\',\n														\'AN\',\n														\'2019-09-21\',\n														\'95\',\n														\'95\',\n														\'8.26\',\n														\'94\',\n														\'27661\',\n														\'-200\',\n														\'0\',\n														\'0.0000\',\n														\'-5010.4\',\n														\'\' )'),('2019-09-20 14:40:42','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57039\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-20 14:40:42','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'1652\',\n										\'0\',\n										\'95\',\n										\'95\',\n										\'200\',\n										\'0\',\n										\'C001\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C001\'\n								AND custbranch.debtorno = \'95\'\n								AND custbranch.branchcode=\'95\''),('2019-09-20 14:40:42','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27157\',\n											\'2019-09-21\',\n											\'94\',\n											\'4100\',\n											\'95 - C001 x 200 @ 8.26\',\n											\'-1652\')'),('2019-09-20 14:40:42','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 280,\n								actualdispatchdate = \'2019-09-21\',\n								completed=1\n							WHERE orderno = \'27661\'\n							AND orderlineno = \'1\''),('2019-09-20 14:40:42','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 280\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-20 14:40:42','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'27157\',\n														\'AN\',\n														\'2019-09-21\',\n														\'95\',\n														\'95\',\n														\'8.25\',\n														\'94\',\n														\'27661\',\n														\'-280\',\n														\'0\',\n														\'0.0000\',\n														\'-89033.42\',\n														\'\' )'),('2019-09-20 14:40:42','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57040\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-20 14:40:42','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'2310\',\n										\'0\',\n										\'95\',\n										\'95\',\n										\'280\',\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 = \'95\'\n								AND custbranch.branchcode=\'95\''),('2019-09-20 14:40:42','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27157\',\n											\'2019-09-21\',\n											\'94\',\n											\'4100\',\n											\'95 - CHICKEN x 280 @ 8.25\',\n											\'-2310\')'),('2019-09-20 14:40:42','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 200,\n								actualdispatchdate = \'2019-09-21\',\n								completed=1\n							WHERE orderno = \'27661\'\n							AND orderlineno = \'2\''),('2019-09-20 14:40:42','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 200\n						WHERE locstock.stockid = \'BM500G\'\n						AND loccode = \'AN\''),('2019-09-20 14:40:42','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BM500G\',\n														10,\n														\'27157\',\n														\'AN\',\n														\'2019-09-21\',\n														\'95\',\n														\'95\',\n														\'9.13\',\n														\'94\',\n														\'27661\',\n														\'-200\',\n														\'0\',\n														\'0.0000\',\n														\'-72154.11\',\n														\'\' )'),('2019-09-20 14:40:42','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57041\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-20 14:40:42','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'1826\',\n										\'0\',\n										\'95\',\n										\'95\',\n										\'200\',\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 = \'95\'\n								AND custbranch.branchcode=\'95\''),('2019-09-20 14:40:42','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27157\',\n											\'2019-09-21\',\n											\'94\',\n											\'4100\',\n											\'95 - BM500G x 200 @ 9.13\',\n											\'-1826\')'),('2019-09-20 14:40:42','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 200,\n								actualdispatchdate = \'2019-09-21\',\n								completed=1\n							WHERE orderno = \'27661\'\n							AND orderlineno = \'3\''),('2019-09-20 14:40:42','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 200\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-09-20 14:40:42','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LN\',\n														10,\n														\'27157\',\n														\'AN\',\n														\'2019-09-21\',\n														\'95\',\n														\'95\',\n														\'11.47\',\n														\'94\',\n														\'27661\',\n														\'-200\',\n														\'0\',\n														\'0.0000\',\n														\'-261084.12\',\n														\'\' )'),('2019-09-20 14:40:42','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57042\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-20 14:40:42','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'2294\',\n										\'0\',\n										\'95\',\n										\'95\',\n										\'200\',\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 = \'95\'\n								AND custbranch.branchcode=\'95\''),('2019-09-20 14:40:42','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27157\',\n											\'2019-09-21\',\n											\'94\',\n											\'4100\',\n											\'95 - LN x 200 @ 11.47\',\n											\'-2294\')'),('2019-09-20 14:40:42','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27157\',\n										\'2019-09-21\',\n										\'94\',\n										\'1100\',\n										\'95\',\n										\'8809.38\')'),('2019-09-20 14:40:42','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27157\',\n											\'2019-09-21\',\n											\'94\',\n											\'2300\',\n											\'95\',\n											\'-727.38\')'),('2019-09-20 14:40:42','zaabed','UPDATE gltrans SET amount = amount - -0.0000000000007958078640513122\n								WHERE counterindex = \'122959\''),('2019-09-20 16:38: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								\'27662\',\n								\'TM020\',\n								\'R010\',\n								\'19102-031976gcoy\',\n								\'\',\n								\'2019-09-20 16:38\',\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-09-21\',\n								\'2019-09-21\',\n								\'2019-09-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-20 16:38: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					\'27662\',\n					\'CP\',\n					\'14.50\',\n					\'150\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-20\'\n				)'),('2019-09-20 16:38: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					\'27662\',\n					\'LN\',\n					\'11.47\',\n					\'100\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-20\'\n				)'),('2019-09-20 16:38: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					\'2\',\n					\'27662\',\n					\'LSD\',\n					\'14.22\',\n					\'100\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-20\'\n				)'),('2019-09-20 16:38: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					\'3\',\n					\'27662\',\n					\'CHICKEN\',\n					\'8.25\',\n					\'180\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-20\'\n				)'),('2019-09-20 16:38: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					\'4\',\n					\'27662\',\n					\'ST\',\n					\'9.13\',\n					\'60\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-20\'\n				)'),('2019-09-20 16:38: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					\'5\',\n					\'27662\',\n					\'C001\',\n					\'8.26\',\n					\'100\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-20\'\n				)'),('2019-09-20 16:38: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					\'6\',\n					\'27662\',\n					\'CHS\',\n					\'8.25\',\n					\'60\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-20\'\n				)'),('2019-09-20 16:39:02','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27158\')\n			WHERE orderno= \'27662\''),('2019-09-20 16:39:02','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'27158\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-09-21\',\n									\'2019-09-20 16-39-02\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27662\',\n									\'8097.8\',\n									\'728.8\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-20 16:39:02','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34324\',\n									\'1\',\n									\'728.802\')'),('2019-09-20 16:39:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 150,\n								actualdispatchdate = \'2019-09-21\',\n								completed=1\n							WHERE orderno = \'27662\'\n							AND orderlineno = \'0\''),('2019-09-20 16:39:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 150\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'27158\',\n														\'AN\',\n														\'2019-09-21\',\n														\'TM020\',\n														\'R010\',\n														\'14.5\',\n														\'94\',\n														\'27662\',\n														\'-150\',\n														\'0\',\n														\'0.0000\',\n														\'-307777.65\',\n														\'\' )'),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57043\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-20 16:39:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'2175\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'150\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-20 16:39:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27158\',\n											\'2019-09-21\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CP x 150 @ 14.5\',\n											\'-2175\')'),('2019-09-20 16:39:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 100,\n								actualdispatchdate = \'2019-09-21\',\n								completed=1\n							WHERE orderno = \'27662\'\n							AND orderlineno = \'1\''),('2019-09-20 16:39:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 100\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LN\',\n														10,\n														\'27158\',\n														\'AN\',\n														\'2019-09-21\',\n														\'TM020\',\n														\'R010\',\n														\'11.47\',\n														\'94\',\n														\'27662\',\n														\'-100\',\n														\'0\',\n														\'0.0000\',\n														\'-261184.12\',\n														\'\' )'),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57044\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-20 16:39:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'1147\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'100\',\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-09-20 16:39:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27158\',\n											\'2019-09-21\',\n											\'94\',\n											\'4100\',\n											\'TM020 - LN x 100 @ 11.47\',\n											\'-1147\')'),('2019-09-20 16:39:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 100,\n								actualdispatchdate = \'2019-09-21\',\n								completed=1\n							WHERE orderno = \'27662\'\n							AND orderlineno = \'2\''),('2019-09-20 16:39:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 100\n						WHERE locstock.stockid = \'LSD\'\n						AND loccode = \'AN\''),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LSD\',\n														10,\n														\'27158\',\n														\'AN\',\n														\'2019-09-21\',\n														\'TM020\',\n														\'R010\',\n														\'14.22\',\n														\'94\',\n														\'27662\',\n														\'-100\',\n														\'0\',\n														\'0.0000\',\n														\'-59048.35\',\n														\'\' )'),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57045\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-20 16:39:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'1422\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'100\',\n										\'0\',\n										\'LSD\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LSD\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-20 16:39:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27158\',\n											\'2019-09-21\',\n											\'94\',\n											\'4100\',\n											\'TM020 - LSD x 100 @ 14.22\',\n											\'-1422\')'),('2019-09-20 16:39:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 180,\n								actualdispatchdate = \'2019-09-21\',\n								completed=1\n							WHERE orderno = \'27662\'\n							AND orderlineno = \'3\''),('2019-09-20 16:39:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 180\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'27158\',\n														\'AN\',\n														\'2019-09-21\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'94\',\n														\'27662\',\n														\'-180\',\n														\'0\',\n														\'0.0000\',\n														\'-89213.42\',\n														\'\' )'),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57046\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-20 16:39:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'1485\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'180\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-20 16:39:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27158\',\n											\'2019-09-21\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CHICKEN x 180 @ 8.25\',\n											\'-1485\')'),('2019-09-20 16:39:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 60,\n								actualdispatchdate = \'2019-09-21\',\n								completed=1\n							WHERE orderno = \'27662\'\n							AND orderlineno = \'4\''),('2019-09-20 16:39:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 60\n						WHERE locstock.stockid = \'ST\'\n						AND loccode = \'AN\''),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'ST\',\n														10,\n														\'27158\',\n														\'AN\',\n														\'2019-09-21\',\n														\'TM020\',\n														\'R010\',\n														\'9.13\',\n														\'94\',\n														\'27662\',\n														\'-60\',\n														\'0\',\n														\'0.0000\',\n														\'-5952\',\n														\'\' )'),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57047\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-20 16:39:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'547.8\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'60\',\n										\'0\',\n										\'ST\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'ST\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-20 16:39:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27158\',\n											\'2019-09-21\',\n											\'94\',\n											\'4100\',\n											\'TM020 - ST x 60 @ 9.13\',\n											\'-547.8\')'),('2019-09-20 16:39:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 100,\n								actualdispatchdate = \'2019-09-21\',\n								completed=1\n							WHERE orderno = \'27662\'\n							AND orderlineno = \'5\''),('2019-09-20 16:39:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 100\n						WHERE locstock.stockid = \'C001\'\n						AND loccode = \'AN\''),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'C001\',\n														10,\n														\'27158\',\n														\'AN\',\n														\'2019-09-21\',\n														\'TM020\',\n														\'R010\',\n														\'8.26\',\n														\'94\',\n														\'27662\',\n														\'-100\',\n														\'0\',\n														\'0.0000\',\n														\'-5110.4\',\n														\'\' )'),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57048\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-20 16:39:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'826\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'100\',\n										\'0\',\n										\'C001\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C001\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-20 16:39:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27158\',\n											\'2019-09-21\',\n											\'94\',\n											\'4100\',\n											\'TM020 - C001 x 100 @ 8.26\',\n											\'-826\')'),('2019-09-20 16:39:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 60,\n								actualdispatchdate = \'2019-09-21\',\n								completed=1\n							WHERE orderno = \'27662\'\n							AND orderlineno = \'6\''),('2019-09-20 16:39:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 60\n						WHERE locstock.stockid = \'CHS\'\n						AND loccode = \'AN\''),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHS\',\n														10,\n														\'27158\',\n														\'AN\',\n														\'2019-09-21\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'94\',\n														\'27662\',\n														\'-60\',\n														\'0\',\n														\'0.0000\',\n														\'-26610\',\n														\'\' )'),('2019-09-20 16:39:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57049\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-20 16:39:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'495\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'60\',\n										\'0\',\n										\'CHS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHS\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-20 16:39:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27158\',\n											\'2019-09-21\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CHS x 60 @ 8.25\',\n											\'-495\')'),('2019-09-20 16:39:02','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27158\',\n										\'2019-09-21\',\n										\'94\',\n										\'1100\',\n										\'TM020\',\n										\'8826.6\')'),('2019-09-20 16:39:02','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27158\',\n											\'2019-09-21\',\n											\'94\',\n											\'2300\',\n											\'TM020\',\n											\'-728.8\')'),('2019-09-21 10:00:01','jhairud','UPDATE config SET confvalue = \'2019-09-21\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-09-21 10:16:31','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						\'4739\',\n						12,\n						\'TM044\',\n						\'\',\n						\'2019-09-21\',\n						\'2019-09-21 10-16-31\',\n						\'94\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-8581.81\',\n						\'0\',\n						\'ANZ# 027143\'\n					)'),('2019-09-21 10:16:31','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-09-21\',\n						lastpaid=\'8581.81\'\n					WHERE debtorsmaster.debtorno=\'TM044\''),('2019-09-21 10:16:31','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			\'4739\',\n			\'1100\',\n			\'ANZ# 027143\',\n			\'1\',\n			\'1\',\n			\'2019-09-21\',\n			\'Cheque\',\n			\'8581.81\',\n			\'FJD\'\n		)'),('2019-09-21 10:16:31','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4739\',\n					\'2019-09-21\',\n					\'94\',\n					\'1100\',\n					\'ANZ# 027143\',\n					\'8581.81\'\n				)'),('2019-09-21 10:16:31','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4739\',\n							\'2019-09-21\',\n							\'94\',\n							\'1100\',\n							\'ANZ# 027143\',\n							\'-8581.81\'\n							)'),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'739.89\',\n								\'34325\',\n								\'33767\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'739.89\',\n						settled = \'1\'\n						WHERE id = \'33767\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'463.75\',\n								\'34325\',\n								\'33787\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'463.75\',\n						settled = \'1\'\n						WHERE id = \'33787\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'94.99\',\n								\'34325\',\n								\'33789\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'94.99\',\n						settled = \'1\'\n						WHERE id = \'33789\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'739.89\',\n								\'34325\',\n								\'33797\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'739.89\',\n						settled = \'1\'\n						WHERE id = \'33797\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'144\',\n								\'34325\',\n								\'33801\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'144\',\n						settled = \'1\'\n						WHERE id = \'33801\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'369.95\',\n								\'34325\',\n								\'33805\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'369.95\',\n						settled = \'1\'\n						WHERE id = \'33805\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'670.97\',\n								\'34325\',\n								\'33816\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'670.97\',\n						settled = \'1\'\n						WHERE id = \'33816\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'94.99\',\n								\'34325\',\n								\'33849\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'94.99\',\n						settled = \'1\'\n						WHERE id = \'33849\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'739.89\',\n								\'34325\',\n								\'33852\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'739.89\',\n						settled = \'1\'\n						WHERE id = \'33852\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'819.68\',\n								\'34325\',\n								\'33862\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'819.68\',\n						settled = \'1\'\n						WHERE id = \'33862\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'113.99\',\n								\'34325\',\n								\'33884\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'113.99\',\n						settled = \'1\'\n						WHERE id = \'33884\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'410.06\',\n								\'34325\',\n								\'33891\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'410.06\',\n						settled = \'1\'\n						WHERE id = \'33891\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'410.06\',\n								\'34325\',\n								\'33899\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'410.06\',\n						settled = \'1\'\n						WHERE id = \'33899\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'413.22\',\n								\'34325\',\n								\'33906\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'413.22\',\n						settled = \'1\'\n						WHERE id = \'33906\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'94.99\',\n								\'34325\',\n								\'33909\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'94.99\',\n						settled = \'1\'\n						WHERE id = \'33909\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'936.32\',\n								\'34325\',\n								\'33929\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'936.32\',\n						settled = \'1\'\n						WHERE id = \'33929\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'820.12\',\n								\'34325\',\n								\'33961\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'820.12\',\n						settled = \'1\'\n						WHERE id = \'33961\''),('2019-09-21 10:18:24','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-21\',\n								\'505.05\',\n								\'34325\',\n								\'33982\'\n							)'),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'505.05\',\n						settled = \'1\'\n						WHERE id = \'33982\''),('2019-09-21 10:18:24','jhairud','UPDATE debtortrans\n				SET alloc = \'-8581.81\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34325\''),('2019-09-23 11:29:15','zaabed','UPDATE config SET confvalue = \'2019-09-23\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-09-23 11:29:50','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27663\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-09-23 11:29\',\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-09-24\',\n								\'2019-09-24\',\n								\'2019-09-24\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-23 11:29:50','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27663\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 11:29:59','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27159\')\n			WHERE orderno= \'27663\''),('2019-09-23 11:29:59','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'27159\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-09-24\',\n									\'2019-09-23 11-29-59\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27663\',\n									\'376.2\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-23 11:29:59','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34326\',\n									\'1\',\n									\'33.858\')'),('2019-09-23 11:29:59','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27663\'\n							AND orderlineno = \'0\''),('2019-09-23 11:29:59','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-23 11:29:59','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'27159\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'94\',\n														\'27663\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-307797.65\',\n														\'\' )'),('2019-09-23 11:29:59','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57050\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 11:29:59','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\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-09-23 11:29:59','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27159\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM044 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-09-23 11:29:59','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27159\',\n										\'2019-09-24\',\n										\'94\',\n										\'1100\',\n										\'TM044\',\n										\'410.06\')'),('2019-09-23 11:29:59','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27159\',\n											\'2019-09-24\',\n											\'94\',\n											\'2300\',\n											\'TM044\',\n											\'-33.86\')'),('2019-09-23 11:40:07','zaabed','UPDATE debtortrans\n				SET alloc = alloc + 523.2,\n					settled=\'1\'\n				WHERE transno = \'27141\'\n				AND type=10'),('2019-09-23 11:40: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									alloc,\n									settled)\n						VALUES (2101,\n							11,\n							\'TM002\',\n							\'1\',\n							\'2019-09-23\',\n							\'2019-09-23 11-40-07\',\n							\'94\',\n							\'Inv-27141\',\n							\'DE\',\n							\'27644\',\n							\'-480\',\n							\'-43.2\',\n							\'0\',\n							\'1\',\n							\'\',\n							\'-523.2\',\n							\'1\')'),('2019-09-23 11:40:07','zaabed','INSERT INTO debtortranstaxes (\n							debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34327\',\n					\'1\',\n					\'-43.2\')'),('2019-09-23 11:40:07','zaabed','INSERT INTO custallocns (amt,\n						transid_allocfrom,\n						transid_allocto,\n						datealloc)\n			VALUES (\'523.2\',\n				\'34327\',\n				\'34296\',\n				\'2019-09-23\')'),('2019-09-23 11:40:07','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced - 30,\n								completed=0\n						WHERE orderno = \'27644\'\n						AND stkcode = \'LCPS\'\n						AND quantity &gt;=30'),('2019-09-23 11:40:07','zaabed','UPDATE locstock\n								SET locstock.quantity = locstock.quantity + 30\n								WHERE locstock.stockid = \'LCPS\'\n								AND loccode = \'AN\''),('2019-09-23 11:40: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 (\'LCPS\',\n													11,\n													\'2101\',\n													\'AN\',\n													\'2019-09-23\',\n													\'TM002\',\n													\'1\',\n													\'16\',\n													\'94\',\n													\'Ex Inv - 27141\',\n													\'30\',\n													\'0\',\n													\'0.0000\',\n													\'-46517.03\',\n													\'\')'),('2019-09-23 11:40:07','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n					VALUES (\'57051\',\n						\'1\',\n						\'0.09\',\n						\'1\',\n						\'0\')'),('2019-09-23 11:40: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							\'94\',\n							\'-480\',\n							\'0\',\n							\'TM002\',\n							\'1\',\n							\'-30\',\n							\'0\',\n							\'LCPS\',\n							custbranch.area,\n							1,\n							\'fe\',\n							stockmaster.categoryid\n						FROM stockmaster,\n							custbranch\n						WHERE stockmaster.stockid = \'LCPS\'\n						AND custbranch.debtorno = \'TM002\'\n						AND custbranch.branchcode=\'1\''),('2019-09-23 11:40:07','zaabed','INSERT INTO gltrans (type,\n							typeno,\n							trandate,\n							periodno,\n							account,\n							narrative,\n							amount)\n					VALUES (11,\n						\'2101\',\n						\'2019-09-23\',\n						\'94\',\n						\'4100\',\n						\'TM002 - LCPS x 30 @ 16.0000\',\n						\'480\'\n						)'),('2019-09-23 11:40:07','zaabed','INSERT INTO gltrans (type,\n							typeno,\n							trandate,\n							periodno,\n							account,\n							narrative,\n							amount)\n					VALUES (11,\n						\'2101\',\n						\'2019-09-23\',\n						\'94\',\n						\'1100\',\n						\'TM002\',\n						\'-523.2\'\n					)'),('2019-09-23 11:40:07','zaabed','INSERT INTO gltrans (\n						type,\n						typeno,\n						trandate,\n						periodno,\n						account,\n						narrative,\n						amount\n						)\n					VALUES (\n						11,\n						\'2101\',\n						\'2019-09-23\',\n						\'94\',\n						\'2300\',\n						\'TM002\',\n						\'43.2\'\n					)'),('2019-09-23 11:40:07','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000004263256414560601\n								WHERE counterindex = \'122979\''),('2019-09-23 11:43: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								\'27664\',\n								\'TM087\',\n								\'S051\',\n								\'12433\',\n								\'\',\n								\'2019-09-23 11:43\',\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-09-24\',\n								\'2019-09-24\',\n								\'2019-09-24\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-23 11:43: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					\'27664\',\n					\'WAHOO\',\n					\'22\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 11:43:02','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27664\',\n					\'CHICKEN\',\n					\'18\',\n					\'15\',\n					\'0\',\n					\'boneless\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 11:43:10','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27160\')\n			WHERE orderno= \'27664\''),('2019-09-23 11:43:10','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									\'27160\',\n									10,\n									\'TM087\',\n									\'S051\',\n									\'2019-09-24\',\n									\'2019-09-23 11-43-10\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27664\',\n									\'490\',\n									\'44.1\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-23 11:43:10','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34328\',\n									\'1\',\n									\'44.1\')'),('2019-09-23 11:43:10','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27664\'\n							AND orderlineno = \'0\''),('2019-09-23 11:43:10','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'WAHOO\'\n						AND loccode = \'AN\''),('2019-09-23 11:43:10','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'WAHOO\',\n														10,\n														\'27160\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM087\',\n														\'S051\',\n														\'22\',\n														\'94\',\n														\'27664\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-52348.55\',\n														\'\' )'),('2019-09-23 11:43:10','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57052\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 11:43:10','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										\'94\',\n										\'220\',\n										\'0\',\n										\'TM087\',\n										\'S051\',\n										\'10\',\n										\'0\',\n										\'WAHOO\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'WAHOO\'\n								AND custbranch.debtorno = \'TM087\'\n								AND custbranch.branchcode=\'S051\''),('2019-09-23 11:43:10','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27160\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM087 - WAHOO x 10 @ 22\',\n											\'-220\')'),('2019-09-23 11:43:10','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27664\'\n							AND orderlineno = \'1\''),('2019-09-23 11:43:10','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-23 11:43:10','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														\'27160\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM087\',\n														\'S051\',\n														\'18\',\n														\'94\',\n														\'27664\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-89228.42\',\n														\'boneless\' )'),('2019-09-23 11:43:10','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57053\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 11:43:10','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										\'94\',\n										\'270\',\n										\'0\',\n										\'TM087\',\n										\'S051\',\n										\'15\',\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-09-23 11:43:10','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27160\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM087 - CHICKEN x 15 @ 18\',\n											\'-270\')'),('2019-09-23 11:43:10','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27160\',\n										\'2019-09-24\',\n										\'94\',\n										\'1100\',\n										\'TM087\',\n										\'534.1\')'),('2019-09-23 11:43:10','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27160\',\n											\'2019-09-24\',\n											\'94\',\n											\'2300\',\n											\'TM087\',\n											\'-44.1\')'),('2019-09-23 11:43:10','zaabed','UPDATE gltrans SET amount = amount - 0.000000000000021316282072803006\n								WHERE counterindex = \'122982\''),('2019-09-23 11:55: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								\'27665\',\n								\'TM074\',\n								\'P001\',\n								\'centerpoint\',\n								\'\',\n								\'2019-09-23 11:55\',\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-09-24\',\n								\'2019-09-24\',\n								\'2019-09-24\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-23 11:55: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					\'27665\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 11:55: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					\'27665\',\n					\'LC\',\n					\'18.81\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 11:55: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					\'2\',\n					\'27665\',\n					\'CT\',\n					\'38\',\n					\'3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 11:55: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					\'3\',\n					\'27665\',\n					\'MBT\',\n					\'9.50\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 11:55: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					\'4\',\n					\'27665\',\n					\'BM500G\',\n					\'9.00\',\n					\'3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 11:55:44','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27161\')\n			WHERE orderno= \'27665\''),('2019-09-23 11:55: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									\'27161\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-09-24\',\n									\'2019-09-23 11-55-44\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27665\',\n									\'753.75\',\n									\'52.58\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-23 11:55:44','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34329\',\n									\'1\',\n									\'52.5825\')'),('2019-09-23 11:55:44','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27665\'\n							AND orderlineno = \'0\''),('2019-09-23 11:55:44','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-23 11:55: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 (\'CP\',\n														10,\n														\'27161\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'94\',\n														\'27665\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-307817.65\',\n														\'\' )'),('2019-09-23 11:55:44','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57054\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 11:55: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										\'94\',\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-09-23 11:55:44','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27161\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-09-23 11:55:44','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27665\'\n							AND orderlineno = \'1\''),('2019-09-23 11:55:44','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'LC\'\n						AND loccode = \'AN\''),('2019-09-23 11:55: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 (\'LC\',\n														10,\n														\'27161\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'94\',\n														\'27665\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-7264.98\',\n														\'\' )'),('2019-09-23 11:55:44','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57055\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 11:55: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										\'94\',\n										\'94.05\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'5\',\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 = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-09-23 11:55:44','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27161\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM074 - LC x 5 @ 18.81\',\n											\'-94.05\')'),('2019-09-23 11:55:44','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27665\'\n							AND orderlineno = \'2\''),('2019-09-23 11:55:44','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'CT\'\n						AND loccode = \'AN\''),('2019-09-23 11:55: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 (\'CT\',\n														10,\n														\'27161\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM074\',\n														\'P001\',\n														\'38\',\n														\'94\',\n														\'27665\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-7037.41\',\n														\'\' )'),('2019-09-23 11:55:44','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57056\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 11:55: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										\'94\',\n										\'114\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'3\',\n										\'0\',\n										\'CT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-09-23 11:55:44','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27161\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM074 - CT x 3 @ 38\',\n											\'-114\')'),('2019-09-23 11:55:44','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27665\'\n							AND orderlineno = \'3\''),('2019-09-23 11:55:44','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-09-23 11:55: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 (\'MBT\',\n														10,\n														\'27161\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'94\',\n														\'27665\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-7557.6\',\n														\'\' )'),('2019-09-23 11:55:44','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57057\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-23 11:55: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										\'94\',\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-09-23 11:55:44','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27161\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM074 - MBT x 15 @ 9.5\',\n											\'-142.5\')'),('2019-09-23 11:55:44','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27665\'\n							AND orderlineno = \'4\''),('2019-09-23 11:55:44','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'BM500G\'\n						AND loccode = \'AN\''),('2019-09-23 11:55: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 (\'BM500G\',\n														10,\n														\'27161\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM074\',\n														\'P001\',\n														\'9\',\n														\'94\',\n														\'27665\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-72157.11\',\n														\'\' )'),('2019-09-23 11:55:44','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57058\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-23 11:55: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										\'94\',\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-09-23 11:55:44','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27161\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM074 - BM500G x 3 @ 9\',\n											\'-27\')'),('2019-09-23 11:55:44','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27161\',\n										\'2019-09-24\',\n										\'94\',\n										\'1100\',\n										\'TM074\',\n										\'806.33\')'),('2019-09-23 11:55:44','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27161\',\n											\'2019-09-24\',\n											\'94\',\n											\'2300\',\n											\'TM074\',\n											\'-52.58\')'),('2019-09-23 11:55:44','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000004263256414560601\n								WHERE counterindex = \'122986\''),('2019-09-23 12:01: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								\'27666\',\n								\'TM074\',\n								\'P001\',\n								\'sport/c\',\n								\'\',\n								\'2019-09-23 12:01\',\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-09-24\',\n								\'2019-09-24\',\n								\'2019-09-24\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-23 12:01: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					\'27666\',\n					\'SF500G\',\n					\'16.40\',\n					\'8.6\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 12:01: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					\'27666\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 12:01: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					\'27666\',\n					\'CT\',\n					\'38.00\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 12:01: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					\'27666\',\n					\'FF\',\n					\'17.00\',\n					\'9.95\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 12:02:09','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27162\')\n			WHERE orderno= \'27666\''),('2019-09-23 12:02: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									\'27162\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-09-24\',\n									\'2019-09-23 12-02-09\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27666\',\n									\'876.39\',\n									\'66.18\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-23 12:02:09','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34330\',\n									\'1\',\n									\'66.1815\')'),('2019-09-23 12:02:09','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 8.6,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27666\'\n							AND orderlineno = \'0\''),('2019-09-23 12:02:09','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 8.6\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-09-23 12:02: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 (\'SF500G\',\n														10,\n														\'27162\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'94\',\n														\'27666\',\n														\'-8.6\',\n														\'0\',\n														\'0.0000\',\n														\'-9701.281\',\n														\'\' )'),('2019-09-23 12:02:09','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57059\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-23 12:02: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										\'94\',\n										\'141.04\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'8.6\',\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-09-23 12:02:09','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27162\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM074 - SF500G x 8.6 @ 16.4\',\n											\'-141.04\')'),('2019-09-23 12:02:09','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27666\'\n							AND orderlineno = \'1\''),('2019-09-23 12:02:09','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-23 12:02:09','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'27162\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'94\',\n														\'27666\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-307837.65\',\n														\'\' )'),('2019-09-23 12:02:09','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57060\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 12:02: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										\'94\',\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-09-23 12:02:09','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27162\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-09-23 12:02:09','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27666\'\n							AND orderlineno = \'2\''),('2019-09-23 12:02:09','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'CT\'\n						AND loccode = \'AN\''),('2019-09-23 12:02: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 (\'CT\',\n														10,\n														\'27162\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM074\',\n														\'P001\',\n														\'38\',\n														\'94\',\n														\'27666\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-7042.41\',\n														\'\' )'),('2019-09-23 12:02:09','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57061\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 12:02: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										\'94\',\n										\'190\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'5\',\n										\'0\',\n										\'CT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-09-23 12:02:09','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27162\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM074 - CT x 5 @ 38\',\n											\'-190\')'),('2019-09-23 12:02:09','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 9.95,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27666\'\n							AND orderlineno = \'3\''),('2019-09-23 12:02:09','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 9.95\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-09-23 12:02: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 (\'FF\',\n														10,\n														\'27162\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM074\',\n														\'P001\',\n														\'17\',\n														\'94\',\n														\'27666\',\n														\'-9.95\',\n														\'0\',\n														\'0.0000\',\n														\'-21437.72\',\n														\'\' )'),('2019-09-23 12:02:09','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57062\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 12:02: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										\'94\',\n										\'169.15\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'9.95\',\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-09-23 12:02:09','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27162\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM074 - FF x 9.95 @ 17\',\n											\'-169.15\')'),('2019-09-23 12:02:09','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27162\',\n										\'2019-09-24\',\n										\'94\',\n										\'1100\',\n										\'TM074\',\n										\'942.57\')'),('2019-09-23 12:02:09','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27162\',\n											\'2019-09-24\',\n											\'94\',\n											\'2300\',\n											\'TM074\',\n											\'-66.18\')'),('2019-09-23 12:02:09','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000005684341886080802\n								WHERE counterindex = \'122993\''),('2019-09-23 12:40: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								\'27667\',\n								\'TM020\',\n								\'R010\',\n								\'19102-031955qebmesses\',\n								\'\',\n								\'2019-09-23 12:40\',\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-09-24\',\n								\'2019-09-24\',\n								\'2019-09-24\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-23 12:40: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					\'27667\',\n					\'C001\',\n					\'8.26\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 12:40: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					\'27667\',\n					\'CHICKEN\',\n					\'8.25\',\n					\'150\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 12:40: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					\'2\',\n					\'27667\',\n					\'CHS\',\n					\'8.25\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 12:40: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					\'3\',\n					\'27667\',\n					\'CP\',\n					\'14.50\',\n					\'120\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 12:40: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					\'4\',\n					\'27667\',\n					\'LN2\',\n					\'11.47\',\n					\'100\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 12:40: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					\'5\',\n					\'27667\',\n					\'ST\',\n					\'9.13\',\n					\'100\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 12:40:49','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27163\')\n			WHERE orderno= \'27667\''),('2019-09-23 12:40:49','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'27163\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-09-24\',\n									\'2019-09-23 12-40-49\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27667\',\n									\'6358.3\',\n									\'572.25\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-23 12:40:49','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34331\',\n									\'1\',\n									\'572.247\')'),('2019-09-23 12:40:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27667\'\n							AND orderlineno = \'0\''),('2019-09-23 12:40:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'C001\'\n						AND loccode = \'AN\''),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'C001\',\n														10,\n														\'27163\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'8.26\',\n														\'94\',\n														\'27667\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-5190.4\',\n														\'\' )'),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57063\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 12:40:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'660.8\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'80\',\n										\'0\',\n										\'C001\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C001\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-23 12:40:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27163\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - C001 x 80 @ 8.26\',\n											\'-660.8\')'),('2019-09-23 12:40:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 150,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27667\'\n							AND orderlineno = \'1\''),('2019-09-23 12:40:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 150\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'27163\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'94\',\n														\'27667\',\n														\'-150\',\n														\'0\',\n														\'0.0000\',\n														\'-89378.42\',\n														\'\' )'),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57064\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 12:40:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'1237.5\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'150\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-23 12:40:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27163\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CHICKEN x 150 @ 8.25\',\n											\'-1237.5\')'),('2019-09-23 12:40:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27667\'\n							AND orderlineno = \'2\''),('2019-09-23 12:40:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'CHS\'\n						AND loccode = \'AN\''),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHS\',\n														10,\n														\'27163\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'94\',\n														\'27667\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-26690\',\n														\'\' )'),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57065\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 12:40:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'660\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'80\',\n										\'0\',\n										\'CHS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHS\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-23 12:40:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27163\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CHS x 80 @ 8.25\',\n											\'-660\')'),('2019-09-23 12:40:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 120,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27667\'\n							AND orderlineno = \'3\''),('2019-09-23 12:40:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 120\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'27163\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'14.5\',\n														\'94\',\n														\'27667\',\n														\'-120\',\n														\'0\',\n														\'0.0000\',\n														\'-307957.65\',\n														\'\' )'),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57066\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 12:40:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'1740\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'120\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-23 12:40:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27163\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CP x 120 @ 14.5\',\n											\'-1740\')'),('2019-09-23 12:40:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 100,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27667\'\n							AND orderlineno = \'4\''),('2019-09-23 12:40:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 100\n						WHERE locstock.stockid = \'LN2\'\n						AND loccode = \'AN\''),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LN2\',\n														10,\n														\'27163\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'11.47\',\n														\'94\',\n														\'27667\',\n														\'-100\',\n														\'0\',\n														\'0.0000\',\n														\'-4395.51\',\n														\'\' )'),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57067\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 12:40:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'1147\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'100\',\n										\'0\',\n										\'LN2\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LN2\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-23 12:40:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27163\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - LN2 x 100 @ 11.47\',\n											\'-1147\')'),('2019-09-23 12:40:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 100,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27667\'\n							AND orderlineno = \'5\''),('2019-09-23 12:40:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 100\n						WHERE locstock.stockid = \'ST\'\n						AND loccode = \'AN\''),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'ST\',\n														10,\n														\'27163\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'9.13\',\n														\'94\',\n														\'27667\',\n														\'-100\',\n														\'0\',\n														\'0.0000\',\n														\'-6052\',\n														\'\' )'),('2019-09-23 12:40:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57068\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 12:40:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'913\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'100\',\n										\'0\',\n										\'ST\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'ST\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-23 12:40:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27163\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - ST x 100 @ 9.13\',\n											\'-913\')'),('2019-09-23 12:40:49','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27163\',\n										\'2019-09-24\',\n										\'94\',\n										\'1100\',\n										\'TM020\',\n										\'6930.55\')'),('2019-09-23 12:40:49','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27163\',\n											\'2019-09-24\',\n											\'94\',\n											\'2300\',\n											\'TM020\',\n											\'-572.25\')'),('2019-09-23 14:44:24','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								\'27668\',\n								\'TM020\',\n								\'R010\',\n								\'19102-031995GCOYFUNERAL\',\n								\'\',\n								\'2019-09-23 14:44\',\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-09-24\',\n								\'2019-09-24\',\n								\'2019-09-24\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-23 14:44:24','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					\'27668\',\n					\'C001\',\n					\'8.26\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 14:44:24','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					\'27668\',\n					\'CHICKEN\',\n					\'8.25\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 14:44:24','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					\'27668\',\n					\'CP\',\n					\'14.50\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 14:44:24','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					\'27668\',\n					\'LNP\',\n					\'11.47\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 14:44:39','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27164\')\n			WHERE orderno= \'27668\''),('2019-09-23 14:44: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									\'27164\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-09-24\',\n									\'2019-09-23 14-44-39\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27668\',\n									\'1699.2\',\n									\'152.93\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-23 14:44:39','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34332\',\n									\'1\',\n									\'152.928\')'),('2019-09-23 14:44:39','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27668\'\n							AND orderlineno = \'0\''),('2019-09-23 14:44:39','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'C001\'\n						AND loccode = \'AN\''),('2019-09-23 14:44: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 (\'C001\',\n														10,\n														\'27164\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'8.26\',\n														\'94\',\n														\'27668\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-5230.4\',\n														\'\' )'),('2019-09-23 14:44:39','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57069\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 14:44: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										\'94\',\n										\'330.4\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'40\',\n										\'0\',\n										\'C001\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C001\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-23 14:44:39','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27164\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - C001 x 40 @ 8.26\',\n											\'-330.4\')'),('2019-09-23 14:44:39','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27668\'\n							AND orderlineno = \'1\''),('2019-09-23 14:44:39','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-23 14:44: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 (\'CHICKEN\',\n														10,\n														\'27164\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'94\',\n														\'27668\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-89418.42\',\n														\'\' )'),('2019-09-23 14:44:39','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57070\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 14:44: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										\'94\',\n										\'330\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'40\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-23 14:44:39','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27164\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CHICKEN x 40 @ 8.25\',\n											\'-330\')'),('2019-09-23 14:44:39','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27668\'\n							AND orderlineno = \'2\''),('2019-09-23 14:44:39','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-23 14:44: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 (\'CP\',\n														10,\n														\'27164\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'14.5\',\n														\'94\',\n														\'27668\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-307997.65\',\n														\'\' )'),('2019-09-23 14:44:39','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57071\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 14:44: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										\'94\',\n										\'580\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'40\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-23 14:44:39','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27164\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CP x 40 @ 14.5\',\n											\'-580\')'),('2019-09-23 14:44:39','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27668\'\n							AND orderlineno = \'3\''),('2019-09-23 14:44:39','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LNP\'\n						AND loccode = \'AN\''),('2019-09-23 14:44: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 (\'LNP\',\n														10,\n														\'27164\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'11.47\',\n														\'94\',\n														\'27668\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-2594.64\',\n														\'\' )'),('2019-09-23 14:44:39','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57072\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 14:44: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										\'94\',\n										\'458.8\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'40\',\n										\'0\',\n										\'LNP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LNP\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-23 14:44:39','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27164\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - LNP x 40 @ 11.47\',\n											\'-458.8\')'),('2019-09-23 14:44:39','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27164\',\n										\'2019-09-24\',\n										\'94\',\n										\'1100\',\n										\'TM020\',\n										\'1852.13\')'),('2019-09-23 14:44:39','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27164\',\n											\'2019-09-24\',\n											\'94\',\n											\'2300\',\n											\'TM020\',\n											\'-152.93\')'),('2019-09-23 14:44:39','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000005684341886080802\n								WHERE counterindex = \'123007\''),('2019-09-23 16:58:18','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27669\',\n								\'TM020\',\n								\'R010\',\n								\'19102-031864ftg\',\n								\'\',\n								\'2019-09-23 16:58\',\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-09-24\',\n								\'2019-09-24\',\n								\'2019-09-24\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-23 16:58:18','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27669\',\n					\'LN\',\n					\'11.47\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 16:58:18','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27669\',\n					\'CP\',\n					\'14.50\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-23\'\n				)'),('2019-09-23 16:58:32','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27165\')\n			WHERE orderno= \'27669\''),('2019-09-23 16:58: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									\'27165\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-09-24\',\n									\'2019-09-23 16-58-32\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27669\',\n									\'1038.8\',\n									\'93.49\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-23 16:58:32','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34333\',\n									\'1\',\n									\'93.492\')'),('2019-09-23 16:58:32','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27669\'\n							AND orderlineno = \'0\''),('2019-09-23 16:58:32','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-09-23 16:58: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 (\'LN\',\n														10,\n														\'27165\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'11.47\',\n														\'94\',\n														\'27669\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-261224.12\',\n														\'\' )'),('2019-09-23 16:58:32','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57073\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 16:58: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										\'94\',\n										\'458.8\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'40\',\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-09-23 16:58:32','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27165\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - LN x 40 @ 11.47\',\n											\'-458.8\')'),('2019-09-23 16:58:32','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-09-24\',\n								completed=1\n							WHERE orderno = \'27669\'\n							AND orderlineno = \'1\''),('2019-09-23 16:58:32','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-23 16:58: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 (\'CP\',\n														10,\n														\'27165\',\n														\'AN\',\n														\'2019-09-24\',\n														\'TM020\',\n														\'R010\',\n														\'14.5\',\n														\'94\',\n														\'27669\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-308037.65\',\n														\'\' )'),('2019-09-23 16:58:32','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57074\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-23 16:58: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										\'94\',\n										\'580\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'40\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-23 16:58:32','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27165\',\n											\'2019-09-24\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CP x 40 @ 14.5\',\n											\'-580\')'),('2019-09-23 16:58:32','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27165\',\n										\'2019-09-24\',\n										\'94\',\n										\'1100\',\n										\'TM020\',\n										\'1132.29\')'),('2019-09-23 16:58:32','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27165\',\n											\'2019-09-24\',\n											\'94\',\n											\'2300\',\n											\'TM020\',\n											\'-93.49\')'),('2019-09-24 08:02:42','jhairud','UPDATE config SET confvalue = \'2019-09-24\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-09-24 11:23: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								\'27670\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-09-24 11:23\',\n								\'DE\',\n								\'10\',\n								\'CURRY HOUSE\',\n								\'Suva\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-09-25\',\n								\'2019-09-25\',\n								\'2019-09-25\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-24 11:23: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					\'27670\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-24\'\n				)'),('2019-09-24 11:24:01','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27166\')\n			WHERE orderno= \'27670\''),('2019-09-24 11:24: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									\'27166\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-09-25\',\n									\'2019-09-24 11-24-01\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27670\',\n									\'376.2\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Jhairud\')'),('2019-09-24 11:24:01','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34334\',\n									\'1\',\n									\'33.858\')'),('2019-09-24 11:24:01','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-09-25\',\n								completed=1\n							WHERE orderno = \'27670\'\n							AND orderlineno = \'0\''),('2019-09-24 11:24:01','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-24 11:24: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														\'27166\',\n														\'AN\',\n														\'2019-09-25\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'94\',\n														\'27670\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-308057.65\',\n														\'\' )'),('2019-09-24 11:24:01','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57075\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-24 11:24: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										\'94\',\n										\'376.2\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\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 = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-09-24 11:24:01','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27166\',\n											\'2019-09-25\',\n											\'94\',\n											\'4100\',\n											\'TM044 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-09-24 11:24:01','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27166\',\n										\'2019-09-25\',\n										\'94\',\n										\'1100\',\n										\'TM044\',\n										\'410.06\')'),('2019-09-24 11:24:01','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27166\',\n											\'2019-09-25\',\n											\'94\',\n											\'2300\',\n											\'TM044\',\n											\'-33.86\')'),('2019-09-24 11:28:25','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								\'27671\',\n								\'TM074\',\n								\'P001\',\n								\'Nakasi\',\n								\'Nakasi\',\n								\'2019-09-24 11:28\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'Nakasi\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-09-25\',\n								\'2019-09-25\',\n								\'2019-09-25\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-24 11:28:25','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					\'27671\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-24\'\n				)'),('2019-09-24 11:28:25','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					\'27671\',\n					\'FISH\',\n					\'15.00\',\n					\'4.5\',\n					\'0\',\n					\'WALU\',\n					\'\',\n					\'2019-09-24\'\n				)'),('2019-09-24 11:31: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								\'27672\',\n								\'TM074\',\n								\'P001\',\n								\'Nakasi\',\n								\'Nakasi\',\n								\'2019-09-24 11:31\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'Nakasi\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-09-25\',\n								\'2019-09-25\',\n								\'2019-09-25\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-24 11:31: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					\'27672\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-24\'\n				)'),('2019-09-24 11:31: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					\'27672\',\n					\'FISH\',\n					\'15.00\',\n					\'4.5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-24\'\n				)'),('2019-09-24 11:32:27','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27167\')\n			WHERE orderno= \'27672\''),('2019-09-24 11:32:27','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									\'27167\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-09-25\',\n									\'2019-09-24 11-32-27\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27672\',\n									\'443.7\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'Nakasi\',\n									\'10\',\n									\'Nakasi\',\n									\'1\',\n									\'Jhairud\')'),('2019-09-24 11:32:27','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34335\',\n									\'1\',\n									\'33.858\')'),('2019-09-24 11:32:27','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-09-25\',\n								completed=1\n							WHERE orderno = \'27672\'\n							AND orderlineno = \'0\''),('2019-09-24 11:32:27','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-24 11:32:27','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														\'27167\',\n														\'AN\',\n														\'2019-09-25\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'94\',\n														\'27672\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-308077.65\',\n														\'\' )'),('2019-09-24 11:32:27','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57076\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-24 11:32:27','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										\'94\',\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-09-24 11:32:27','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27167\',\n											\'2019-09-25\',\n											\'94\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-09-24 11:32:27','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.5,\n								actualdispatchdate = \'2019-09-25\',\n								completed=1\n							WHERE orderno = \'27672\'\n							AND orderlineno = \'1\''),('2019-09-24 11:32:27','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 4.5\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-09-24 11:32:27','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 (\'FISH\',\n														10,\n														\'27167\',\n														\'AN\',\n														\'2019-09-25\',\n														\'TM074\',\n														\'P001\',\n														\'15\',\n														\'94\',\n														\'27672\',\n														\'-4.5\',\n														\'0\',\n														\'0.0000\',\n														\'-45528.5701\',\n														\'\' )'),('2019-09-24 11:32:27','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57077\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-24 11:32:27','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										\'94\',\n										\'67.5\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'4.5\',\n										\'0\',\n										\'FISH\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FISH\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-09-24 11:32:27','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27167\',\n											\'2019-09-25\',\n											\'94\',\n											\'4100\',\n											\'TM074 - FISH x 4.5 @ 15\',\n											\'-67.5\')'),('2019-09-24 11:32:27','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27167\',\n										\'2019-09-25\',\n										\'94\',\n										\'1100\',\n										\'TM074\',\n										\'477.56\')'),('2019-09-24 11:32:27','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27167\',\n											\'2019-09-25\',\n											\'94\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-09-24 12:18:23','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								\'27673\',\n								\'TM051\',\n								\'F021\',\n								\'0169\',\n								\'0169\\\\r\\\\nNasese\\\\r\\\\nSuva\\\\r\\\\n\',\n								\'2019-09-24 12:18\',\n								\'DE\',\n								\'10\',\n								\'FIJI POLICE FORCE OFFICERS MESS\',\n								\'Nasese\',\n								\'Suva\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-09-25\',\n								\'2019-09-25\',\n								\'2019-09-25\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-24 12:18:23','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					\'27673\',\n					\'FISH\',\n					\'9.50\',\n					\'4.6\',\n					\'0\',\n					\'PALU\',\n					\'\',\n					\'2019-09-24\'\n				)'),('2019-09-24 12:18:49','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27168\')\n			WHERE orderno= \'27673\''),('2019-09-24 12:18:49','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									\'27168\',\n									10,\n									\'TM051\',\n									\'F021\',\n									\'2019-09-25\',\n									\'2019-09-24 12-18-49\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27673\',\n									\'43.7\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'0169\\r\\nNasese\\r\\nSuva\\r\\n\',\n									\'10\',\n									\'0169 Nasese Suv\',\n									\'1\',\n									\'Jhairud\')'),('2019-09-24 12:18:49','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34336\',\n									\'1\',\n									\'0\')'),('2019-09-24 12:18:49','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.6,\n								actualdispatchdate = \'2019-09-25\',\n								completed=1\n							WHERE orderno = \'27673\'\n							AND orderlineno = \'0\''),('2019-09-24 12:18:49','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 4.6\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-09-24 12:18:49','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 (\'FISH\',\n														10,\n														\'27168\',\n														\'AN\',\n														\'2019-09-25\',\n														\'TM051\',\n														\'F021\',\n														\'9.5\',\n														\'94\',\n														\'27673\',\n														\'-4.6\',\n														\'0\',\n														\'0.0000\',\n														\'-45533.1701\',\n														\'PALU\' )'),('2019-09-24 12:18:49','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57078\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-24 12:18:49','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										\'94\',\n										\'43.7\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'4.6\',\n										\'0\',\n										\'FISH\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FISH\'\n								AND custbranch.debtorno = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-09-24 12:18:49','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27168\',\n											\'2019-09-25\',\n											\'94\',\n											\'4100\',\n											\'TM051 - FISH x 4.6 @ 9.5\',\n											\'-43.7\')'),('2019-09-24 12:18:49','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27168\',\n										\'2019-09-25\',\n										\'94\',\n										\'1100\',\n										\'TM051\',\n										\'43.7\')'),('2019-09-24 16:18:22','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						\'4740\',\n						12,\n						\'H002\',\n						\'\',\n						\'2019-09-24\',\n						\'2019-09-24 16-18-22\',\n						\'94\',\n						\'Cash \',\n						\'\',\n						\'1\',\n						\'-1087.65\',\n						\'0\',\n						\'WBC# 64352\'\n					)'),('2019-09-24 16:18:22','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-09-24\',\n						lastpaid=\'1087.65\'\n					WHERE debtorsmaster.debtorno=\'H002\''),('2019-09-24 16:18:22','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			\'4740\',\n			\'1100\',\n			\'WBC# 64352\',\n			\'1\',\n			\'1\',\n			\'2019-09-24\',\n			\'Cash\',\n			\'1087.65\',\n			\'FJD\'\n		)'),('2019-09-24 16:18:22','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4740\',\n					\'2019-09-24\',\n					\'94\',\n					\'1100\',\n					\'WBC# 64352\',\n					\'1087.65\'\n				)'),('2019-09-24 16:18:22','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4740\',\n							\'2019-09-24\',\n							\'94\',\n							\'1100\',\n							\'WBC# 64352\',\n							\'-1087.65\'\n							)'),('2019-09-24 16:19:00','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-24\',\n								\'1087.65\',\n								\'34337\',\n								\'33969\'\n							)'),('2019-09-24 16:19:00','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1087.65\',\n						settled = \'1\'\n						WHERE id = \'33969\''),('2019-09-24 16:19:00','jhairud','UPDATE debtortrans\n				SET alloc = \'-1087.65\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34337\''),('2019-09-25 07:59:40','jhairud','UPDATE config SET confvalue = \'2019-09-25\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-09-25 11:31:16','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						\'4741\',\n						12,\n						\'TM011\',\n						\'\',\n						\'2019-09-25\',\n						\'2019-09-25 11-31-16\',\n						\'94\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-4629.2\',\n						\'0\',\n						\'ANZ# 3560\'\n					)'),('2019-09-25 11:31:16','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-09-25\',\n						lastpaid=\'4629.20\'\n					WHERE debtorsmaster.debtorno=\'TM011\''),('2019-09-25 11:31:16','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			\'4741\',\n			\'1100\',\n			\'ANZ# 3560\',\n			\'1\',\n			\'1\',\n			\'2019-09-25\',\n			\'Cheque\',\n			\'4629.2\',\n			\'FJD\'\n		)'),('2019-09-25 11:31:16','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4741\',\n					\'2019-09-25\',\n					\'94\',\n					\'1100\',\n					\'ANZ# 3560\',\n					\'4629.2\'\n				)'),('2019-09-25 11:31:16','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4741\',\n							\'2019-09-25\',\n							\'94\',\n							\'1100\',\n							\'ANZ# 3560\',\n							\'-4629.2\'\n							)'),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'127.53\',\n								\'34338\',\n								\'33232\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'127.53\',\n						settled = \'1\'\n						WHERE id = \'33232\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'674.1\',\n								\'34338\',\n								\'33225\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'674.1\',\n						settled = \'1\'\n						WHERE id = \'33225\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'170.04\',\n								\'34338\',\n								\'33261\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'170.04\',\n						settled = \'1\'\n						WHERE id = \'33261\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'700.43\',\n								\'34338\',\n								\'33272\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'700.43\',\n						settled = \'1\'\n						WHERE id = \'33272\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'350.22\',\n								\'34338\',\n								\'33329\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'350.22\',\n						settled = \'1\'\n						WHERE id = \'33329\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'170.04\',\n								\'34338\',\n								\'33328\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'170.04\',\n						settled = \'1\'\n						WHERE id = \'33328\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'85.02\',\n								\'34338\',\n								\'33327\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'85.02\',\n						settled = \'1\'\n						WHERE id = \'33327\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'525.33\',\n								\'34338\',\n								\'33397\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'525.33\',\n						settled = \'1\'\n						WHERE id = \'33397\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'700.43\',\n								\'34338\',\n								\'33400\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'700.43\',\n						settled = \'1\'\n						WHERE id = \'33400\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'170.04\',\n								\'34338\',\n								\'33401\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'170.04\',\n						settled = \'1\'\n						WHERE id = \'33401\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'85.02\',\n								\'34338\',\n								\'33402\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'85.02\',\n						settled = \'1\'\n						WHERE id = \'33402\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'292.45\',\n								\'34338\',\n								\'33463\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'292.45\',\n						settled = \'1\'\n						WHERE id = \'33463\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'170.04\',\n								\'34338\',\n								\'33461\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'170.04\',\n						settled = \'1\'\n						WHERE id = \'33461\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'239.2\',\n								\'34338\',\n								\'33460\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'239.2\',\n						settled = \'1\'\n						WHERE id = \'33460\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'42.51\',\n								\'34338\',\n								\'33459\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'42.51\',\n						settled = \'1\'\n						WHERE id = \'33459\''),('2019-09-25 11:33:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-25\',\n								\'126.80\',\n								\'34338\',\n								\'33486\'\n							)'),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'126.8\',\n						settled = \'0\'\n						WHERE id = \'33486\''),('2019-09-25 11:33:05','jhairud','UPDATE debtortrans\n				SET alloc = \'-4629.2\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34338\''),('2019-09-26 08:23:47','jhairud','UPDATE config SET confvalue = \'2019-09-26\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-09-26 11:38: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								\'27674\',\n								\'TM002\',\n								\'1\',\n								\'19205\',\n								\'\',\n								\'2019-09-26 11:38\',\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-09-27\',\n								\'2019-09-27\',\n								\'2019-09-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-26 11:38: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					\'27674\',\n					\'CP\',\n					\'18.81\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-26\'\n				)'),('2019-09-26 11:38: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					\'1\',\n					\'27674\',\n					\'LSP\',\n					\'8.50\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-26\'\n				)'),('2019-09-26 11:38: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					\'2\',\n					\'27674\',\n					\'C001\',\n					\'8.00\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-26\'\n				)'),('2019-09-26 11:38: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					\'3\',\n					\'27674\',\n					\'CHICKEN\',\n					\'8.71\',\n					\'10\',\n					\'0\',\n					\'drumstick\',\n					\'\',\n					\'2019-09-26\'\n				)'),('2019-09-26 11:38: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					\'4\',\n					\'27674\',\n					\'CHICKEN\',\n					\'8.50\',\n					\'10\',\n					\'0\',\n					\'wings\',\n					\'\',\n					\'2019-09-26\'\n				)'),('2019-09-26 11:38:13','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27169\')\n			WHERE orderno= \'27674\''),('2019-09-26 11:38:13','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									\'27169\',\n									10,\n									\'TM002\',\n									\'1\',\n									\'2019-09-27\',\n									\'2019-09-26 11-38-13\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27674\',\n									\'619.25\',\n									\'55.73\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-26 11:38:13','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34339\',\n									\'1\',\n									\'55.7325\')'),('2019-09-26 11:38:13','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-09-27\',\n								completed=1\n							WHERE orderno = \'27674\'\n							AND orderlineno = \'0\''),('2019-09-26 11:38:13','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-26 11:38: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 (\'CP\',\n														10,\n														\'27169\',\n														\'AN\',\n														\'2019-09-27\',\n														\'TM002\',\n														\'1\',\n														\'18.81\',\n														\'94\',\n														\'27674\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-308092.65\',\n														\'\' )'),('2019-09-26 11:38:13','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57079\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-26 11:38: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										\'94\',\n										\'282.15\',\n										\'0\',\n										\'TM002\',\n										\'1\',\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 = \'TM002\'\n								AND custbranch.branchcode=\'1\''),('2019-09-26 11:38:13','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27169\',\n											\'2019-09-27\',\n											\'94\',\n											\'4100\',\n											\'TM002 - CP x 15 @ 18.81\',\n											\'-282.15\')'),('2019-09-26 11:38:13','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-27\',\n								completed=1\n							WHERE orderno = \'27674\'\n							AND orderlineno = \'1\''),('2019-09-26 11:38:13','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'LSP\'\n						AND loccode = \'AN\''),('2019-09-26 11:38: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 (\'LSP\',\n														10,\n														\'27169\',\n														\'AN\',\n														\'2019-09-27\',\n														\'TM002\',\n														\'1\',\n														\'8.5\',\n														\'94\',\n														\'27674\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-39964.34\',\n														\'\' )'),('2019-09-26 11:38:13','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57080\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-26 11:38: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										\'94\',\n										\'85\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'10\',\n										\'0\',\n										\'LSP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LSP\'\n								AND custbranch.debtorno = \'TM002\'\n								AND custbranch.branchcode=\'1\''),('2019-09-26 11:38:13','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27169\',\n											\'2019-09-27\',\n											\'94\',\n											\'4100\',\n											\'TM002 - LSP x 10 @ 8.5\',\n											\'-85\')'),('2019-09-26 11:38:13','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-27\',\n								completed=1\n							WHERE orderno = \'27674\'\n							AND orderlineno = \'2\''),('2019-09-26 11:38:13','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'C001\'\n						AND loccode = \'AN\''),('2019-09-26 11:38: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 (\'C001\',\n														10,\n														\'27169\',\n														\'AN\',\n														\'2019-09-27\',\n														\'TM002\',\n														\'1\',\n														\'8\',\n														\'94\',\n														\'27674\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-5240.4\',\n														\'\' )'),('2019-09-26 11:38:13','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57081\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-26 11:38: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										\'94\',\n										\'80\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'10\',\n										\'0\',\n										\'C001\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C001\'\n								AND custbranch.debtorno = \'TM002\'\n								AND custbranch.branchcode=\'1\''),('2019-09-26 11:38:13','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27169\',\n											\'2019-09-27\',\n											\'94\',\n											\'4100\',\n											\'TM002 - C001 x 10 @ 8\',\n											\'-80\')'),('2019-09-26 11:38:13','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-27\',\n								completed=1\n							WHERE orderno = \'27674\'\n							AND orderlineno = \'3\''),('2019-09-26 11:38:13','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-26 11:38: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 (\'CHICKEN\',\n														10,\n														\'27169\',\n														\'AN\',\n														\'2019-09-27\',\n														\'TM002\',\n														\'1\',\n														\'8.71\',\n														\'94\',\n														\'27674\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-89428.42\',\n														\'drumstick\' )'),('2019-09-26 11:38:13','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57082\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-26 11:38: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										\'94\',\n										\'87.1\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'10\',\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-09-26 11:38:13','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27169\',\n											\'2019-09-27\',\n											\'94\',\n											\'4100\',\n											\'TM002 - CHICKEN x 10 @ 8.71\',\n											\'-87.1\')'),('2019-09-26 11:38:13','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-27\',\n								completed=1\n							WHERE orderno = \'27674\'\n							AND orderlineno = \'4\''),('2019-09-26 11:38:13','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-26 11:38: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 (\'CHICKEN\',\n														10,\n														\'27169\',\n														\'AN\',\n														\'2019-09-27\',\n														\'TM002\',\n														\'1\',\n														\'8.5\',\n														\'94\',\n														\'27674\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-89438.42\',\n														\'wings\' )'),('2019-09-26 11:38:13','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57083\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-26 11:38: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										\'94\',\n										\'85\',\n										\'0\',\n										\'TM002\',\n										\'1\',\n										\'10\',\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-09-26 11:38:13','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27169\',\n											\'2019-09-27\',\n											\'94\',\n											\'4100\',\n											\'TM002 - CHICKEN x 10 @ 8.5\',\n											\'-85\')'),('2019-09-26 11:38:13','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27169\',\n										\'2019-09-27\',\n										\'94\',\n										\'1100\',\n										\'TM002\',\n										\'674.98\')'),('2019-09-26 11:38:13','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27169\',\n											\'2019-09-27\',\n											\'94\',\n											\'2300\',\n											\'TM002\',\n											\'-55.73\')'),('2019-09-26 11:40: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								\'27675\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-09-26 11:40\',\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-09-27\',\n								\'2019-09-27\',\n								\'2019-09-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-26 11:40: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					\'27675\',\n					\'CP\',\n					\'18.81\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-26\'\n				)'),('2019-09-26 11:40:43','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27170\')\n			WHERE orderno= \'27675\''),('2019-09-26 11:40: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									\'27170\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-09-27\',\n									\'2019-09-26 11-40-43\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27675\',\n									\'752.4\',\n									\'67.72\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-26 11:40:43','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34340\',\n									\'1\',\n									\'67.716\')'),('2019-09-26 11:40:43','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-09-27\',\n								completed=1\n							WHERE orderno = \'27675\'\n							AND orderlineno = \'0\''),('2019-09-26 11:40:43','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-26 11:40:43','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'27170\',\n														\'AN\',\n														\'2019-09-27\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'94\',\n														\'27675\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-308132.65\',\n														\'\' )'),('2019-09-26 11:40:43','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57084\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-26 11:40: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										\'94\',\n										\'752.4\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'40\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-09-26 11:40:43','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27170\',\n											\'2019-09-27\',\n											\'94\',\n											\'4100\',\n											\'TM044 - CP x 40 @ 18.81\',\n											\'-752.4\')'),('2019-09-26 11:40:43','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27170\',\n										\'2019-09-27\',\n										\'94\',\n										\'1100\',\n										\'TM044\',\n										\'820.12\')'),('2019-09-26 11:40:43','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27170\',\n											\'2019-09-27\',\n											\'94\',\n											\'2300\',\n											\'TM044\',\n											\'-67.72\')'),('2019-09-26 11:43:12','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								\'27676\',\n								\'TM057\',\n								\'I002\',\n								\'00024459\',\n								\'\',\n								\'2019-09-26 11:43\',\n								\'DE\',\n								\'10\',\n								\'INTERNATIONAL SCHOOL SUVA\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-09-27\',\n								\'2019-09-27\',\n								\'2019-09-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-26 11:43:12','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					\'27676\',\n					\'BN\',\n					\'17.89\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-26\'\n				)'),('2019-09-26 11:43:12','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					\'27676\',\n					\'CP\',\n					\'18.81\',\n					\'30\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-26\'\n				)'),('2019-09-26 11:43:12','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					\'27676\',\n					\'BS500G\',\n					\'14.50\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-26\'\n				)'),('2019-09-26 11:43:20','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27171\')\n			WHERE orderno= \'27676\''),('2019-09-26 11:43: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									\'27171\',\n									10,\n									\'TM057\',\n									\'I002\',\n									\'2019-09-27\',\n									\'2019-09-26 11-43-20\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27676\',\n									\'960.7\',\n									\'66.89\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-26 11:43:20','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34341\',\n									\'1\',\n									\'66.888\')'),('2019-09-26 11:43:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-27\',\n								completed=1\n							WHERE orderno = \'27676\'\n							AND orderlineno = \'0\''),('2019-09-26 11:43:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'BN\'\n						AND loccode = \'AN\''),('2019-09-26 11:43: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 (\'BN\',\n														10,\n														\'27171\',\n														\'AN\',\n														\'2019-09-27\',\n														\'TM057\',\n														\'I002\',\n														\'17.89\',\n														\'94\',\n														\'27676\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-44115.261\',\n														\'\' )'),('2019-09-26 11:43:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57085\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-26 11:43: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										\'94\',\n										\'178.9\',\n										\'0\',\n										\'TM057\',\n										\'I002\',\n										\'10\',\n										\'0\',\n										\'BN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BN\'\n								AND custbranch.debtorno = \'TM057\'\n								AND custbranch.branchcode=\'I002\''),('2019-09-26 11:43:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27171\',\n											\'2019-09-27\',\n											\'94\',\n											\'4100\',\n											\'TM057 - BN x 10 @ 17.89\',\n											\'-178.9\')'),('2019-09-26 11:43:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30,\n								actualdispatchdate = \'2019-09-27\',\n								completed=1\n							WHERE orderno = \'27676\'\n							AND orderlineno = \'1\''),('2019-09-26 11:43:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 30\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-26 11:43: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														\'27171\',\n														\'AN\',\n														\'2019-09-27\',\n														\'TM057\',\n														\'I002\',\n														\'18.81\',\n														\'94\',\n														\'27676\',\n														\'-30\',\n														\'0\',\n														\'0.0000\',\n														\'-308162.65\',\n														\'\' )'),('2019-09-26 11:43:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57086\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-26 11:43: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										\'94\',\n										\'564.3\',\n										\'0\',\n										\'TM057\',\n										\'I002\',\n										\'30\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM057\'\n								AND custbranch.branchcode=\'I002\''),('2019-09-26 11:43:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27171\',\n											\'2019-09-27\',\n											\'94\',\n											\'4100\',\n											\'TM057 - CP x 30 @ 18.81\',\n											\'-564.3\')'),('2019-09-26 11:43:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-09-27\',\n								completed=1\n							WHERE orderno = \'27676\'\n							AND orderlineno = \'2\''),('2019-09-26 11:43:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'BS500G\'\n						AND loccode = \'AN\''),('2019-09-26 11:43: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 (\'BS500G\',\n														10,\n														\'27171\',\n														\'AN\',\n														\'2019-09-27\',\n														\'TM057\',\n														\'I002\',\n														\'14.5\',\n														\'94\',\n														\'27676\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-2306.5\',\n														\'\' )'),('2019-09-26 11:43:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57087\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-26 11:43: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										\'94\',\n										\'217.5\',\n										\'0\',\n										\'TM057\',\n										\'I002\',\n										\'15\',\n										\'0\',\n										\'BS500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BS500G\'\n								AND custbranch.debtorno = \'TM057\'\n								AND custbranch.branchcode=\'I002\''),('2019-09-26 11:43:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27171\',\n											\'2019-09-27\',\n											\'94\',\n											\'4100\',\n											\'TM057 - BS500G x 15 @ 14.5\',\n											\'-217.5\')'),('2019-09-26 11:43:20','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27171\',\n										\'2019-09-27\',\n										\'94\',\n										\'1100\',\n										\'TM057\',\n										\'1027.59\')'),('2019-09-26 11:43:20','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27171\',\n											\'2019-09-27\',\n											\'94\',\n											\'2300\',\n											\'TM057\',\n											\'-66.89\')'),('2019-09-26 11:43:20','zaabed','UPDATE gltrans SET amount = amount - -0.000000000000014210854715202004\n								WHERE counterindex = \'123040\''),('2019-09-26 11:51: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								\'27677\',\n								\'TM099\',\n								\'W010\',\n								\'\',\n								\'\',\n								\'2019-09-26 11:51\',\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-09-27\',\n								\'2019-09-27\',\n								\'2019-09-27\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-26 11:51: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					\'27677\',\n					\'LM\',\n					\'17.89\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-26\'\n				)'),('2019-09-26 11:51:18','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27172\')\n			WHERE orderno= \'27677\''),('2019-09-26 11:51: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									\'27172\',\n									10,\n									\'TM099\',\n									\'W010\',\n									\'2019-09-27\',\n									\'2019-09-26 11-51-18\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27677\',\n									\'1431.2\',\n									\'128.81\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-26 11:51:18','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34342\',\n									\'1\',\n									\'128.808\')'),('2019-09-26 11:51:18','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-09-27\',\n								completed=1\n							WHERE orderno = \'27677\'\n							AND orderlineno = \'0\''),('2019-09-26 11:51:18','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-09-26 11:51: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														\'27172\',\n														\'AN\',\n														\'2019-09-27\',\n														\'TM099\',\n														\'W010\',\n														\'17.89\',\n														\'94\',\n														\'27677\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-32554.78\',\n														\'\' )'),('2019-09-26 11:51:18','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57088\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-26 11:51: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										\'94\',\n										\'1431.2\',\n										\'0\',\n										\'TM099\',\n										\'W010\',\n										\'80\',\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-09-26 11:51:18','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27172\',\n											\'2019-09-27\',\n											\'94\',\n											\'4100\',\n											\'TM099 - LM x 80 @ 17.89\',\n											\'-1431.2\')'),('2019-09-26 11:51:18','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27172\',\n										\'2019-09-27\',\n										\'94\',\n										\'1100\',\n										\'TM099\',\n										\'1560.01\')'),('2019-09-26 11:51:18','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27172\',\n											\'2019-09-27\',\n											\'94\',\n											\'2300\',\n											\'TM099\',\n											\'-128.81\')'),('2019-09-26 14:08: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						\'4742\',\n						12,\n						\'Q001\',\n						\'\',\n						\'2019-09-26\',\n						\'2019-09-26 14-08-02\',\n						\'94\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-1250.23\',\n						\'0\',\n						\'BOB# 9762517\'\n					)'),('2019-09-26 14:08:02','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-09-26\',\n						lastpaid=\'1250.23\'\n					WHERE debtorsmaster.debtorno=\'Q001\''),('2019-09-26 14:08: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			\'4742\',\n			\'1100\',\n			\'BOB# 9762517\',\n			\'1\',\n			\'1\',\n			\'2019-09-26\',\n			\'Cheque\',\n			\'1250.23\',\n			\'FJD\'\n		)'),('2019-09-26 14:08:02','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4742\',\n					\'2019-09-26\',\n					\'94\',\n					\'1100\',\n					\'BOB# 9762517\',\n					\'1250.23\'\n				)'),('2019-09-26 14:08:02','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4742\',\n							\'2019-09-26\',\n							\'94\',\n							\'1100\',\n							\'BOB# 9762517\',\n							\'-1250.23\'\n							)'),('2019-09-26 14:09:12','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						\'4743\',\n						12,\n						\'TM002\',\n						\'\',\n						\'2019-09-26\',\n						\'2019-09-26 14-09-12\',\n						\'94\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-3129.61\',\n						\'0\',\n						\'ANZ# 18040\'\n					)'),('2019-09-26 14:09:12','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-09-26\',\n						lastpaid=\'3129.61\'\n					WHERE debtorsmaster.debtorno=\'TM002\''),('2019-09-26 14:09:12','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			\'4743\',\n			\'1100\',\n			\'ANZ# 18040\',\n			\'1\',\n			\'1\',\n			\'2019-09-26\',\n			\'Cheque\',\n			\'3129.61\',\n			\'FJD\'\n		)'),('2019-09-26 14:09:12','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4743\',\n					\'2019-09-26\',\n					\'94\',\n					\'1100\',\n					\'ANZ# 18040\',\n					\'3129.61\'\n				)'),('2019-09-26 14:09:12','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4743\',\n							\'2019-09-26\',\n							\'94\',\n							\'1100\',\n							\'ANZ# 18040\',\n							\'-3129.61\'\n							)'),('2019-09-26 14:10:51','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						\'4744\',\n						12,\n						\'TM005\',\n						\'\',\n						\'2019-09-26\',\n						\'2019-09-26 14-10-51\',\n						\'94\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-37697.09\',\n						\'0\',\n						\'WBC# 34631\'\n					)'),('2019-09-26 14:10:51','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-09-26\',\n						lastpaid=\'37697.09\'\n					WHERE debtorsmaster.debtorno=\'TM005\''),('2019-09-26 14:10:51','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			\'4744\',\n			\'1100\',\n			\'WBC# 34631\',\n			\'1\',\n			\'1\',\n			\'2019-09-26\',\n			\'Cheque\',\n			\'37697.09\',\n			\'FJD\'\n		)'),('2019-09-26 14:10:51','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4744\',\n					\'2019-09-26\',\n					\'94\',\n					\'1100\',\n					\'WBC# 34631\',\n					\'37697.09\'\n				)'),('2019-09-26 14:10:51','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4744\',\n							\'2019-09-26\',\n							\'94\',\n							\'1100\',\n							\'WBC# 34631\',\n							\'-37697.09\'\n							)'),('2019-09-26 14:11:25','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-26\',\n								\'1250.23\',\n								\'34343\',\n								\'34300\'\n							)'),('2019-09-26 14:11:25','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1250.23\',\n						settled = \'1\'\n						WHERE id = \'34300\''),('2019-09-26 14:11:25','jhairud','UPDATE debtortrans\n				SET alloc = \'-1250.23\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34343\''),('2019-09-26 14:11:45','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-26\',\n								\'37697.09\',\n								\'34345\',\n								\'33786\'\n							)'),('2019-09-26 14:11:45','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'37697.09\',\n						settled = \'1\'\n						WHERE id = \'33786\''),('2019-09-26 14:11:45','jhairud','UPDATE debtortrans\n				SET alloc = \'-37697.09\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34345\''),('2019-09-26 14:12:08','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-26\',\n								\'419.87\',\n								\'34344\',\n								\'34012\'\n							)'),('2019-09-26 14:12:08','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'419.87\',\n						settled = \'1\'\n						WHERE id = \'34012\''),('2019-09-26 14:12:08','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-26\',\n								\'1630.64\',\n								\'34344\',\n								\'34030\'\n							)'),('2019-09-26 14:12:08','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1630.64\',\n						settled = \'1\'\n						WHERE id = \'34030\''),('2019-09-26 14:12:08','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-26\',\n								\'555.9\',\n								\'34344\',\n								\'34129\'\n							)'),('2019-09-26 14:12:08','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'555.9\',\n						settled = \'1\'\n						WHERE id = \'34129\''),('2019-09-26 14:12:08','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-26\',\n								\'523.2\',\n								\'34344\',\n								\'34157\'\n							)'),('2019-09-26 14:12:08','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'523.2\',\n						settled = \'1\'\n						WHERE id = \'34157\''),('2019-09-26 14:12:08','jhairud','UPDATE debtortrans\n				SET alloc = \'-3129.61\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34344\''),('2019-09-27 08:51:55','jhairud','UPDATE config SET confvalue = \'2019-09-27\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-09-27 08:55:53','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						\'4745\',\n						12,\n						\'TM077\',\n						\'\',\n						\'2019-09-27\',\n						\'2019-09-27 08-55-53\',\n						\'94\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-3580.6\',\n						\'0\',\n						\'BSP# 011188\'\n					)'),('2019-09-27 08:55:53','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-09-27\',\n						lastpaid=\'3580.60\'\n					WHERE debtorsmaster.debtorno=\'TM077\''),('2019-09-27 08:55:53','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			\'4745\',\n			\'1100\',\n			\'BSP# 011188\',\n			\'1\',\n			\'1\',\n			\'2019-09-27\',\n			\'Cheque\',\n			\'3580.6\',\n			\'FJD\'\n		)'),('2019-09-27 08:55:53','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4745\',\n					\'2019-09-27\',\n					\'94\',\n					\'1100\',\n					\'BSP# 011188\',\n					\'3580.6\'\n				)'),('2019-09-27 08:55:53','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4745\',\n							\'2019-09-27\',\n							\'94\',\n							\'1100\',\n							\'BSP# 011188\',\n							\'-3580.6\'\n							)'),('2019-09-27 08:56:20','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-27\',\n								\'651.49\',\n								\'34346\',\n								\'33771\'\n							)'),('2019-09-27 08:56:20','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'651.49\',\n						settled = \'1\'\n						WHERE id = \'33771\''),('2019-09-27 08:56:20','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-27\',\n								\'403.3\',\n								\'34346\',\n								\'33794\'\n							)'),('2019-09-27 08:56:20','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'403.3\',\n						settled = \'1\'\n						WHERE id = \'33794\''),('2019-09-27 08:56:20','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-27\',\n								\'830.53\',\n								\'34346\',\n								\'33845\'\n							)'),('2019-09-27 08:56:20','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'830.53\',\n						settled = \'1\'\n						WHERE id = \'33845\''),('2019-09-27 08:56:20','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-09-27\',\n								\'1695.28\',\n								\'34346\',\n								\'33951\'\n							)'),('2019-09-27 08:56:20','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1695.28\',\n						settled = \'1\'\n						WHERE id = \'33951\''),('2019-09-27 08:56:20','jhairud','UPDATE debtortrans\n				SET alloc = \'-3580.6\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34346\''),('2019-09-27 09:07:05','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27678\',\n								\'133\',\n								\'133\',\n								\'pick up\',\n								\'\',\n								\'2019-09-27 09:07\',\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-09-28\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-27 09:07:05','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27678\',\n					\'FISH\',\n					\'12.00\',\n					\'5.14\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 09:07:05','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27678\',\n					\'LCPS\',\n					\'15.13\',\n					\'5.99\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 09:07:15','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27173\')\n			WHERE orderno= \'27678\''),('2019-09-27 09:07:15','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									\'27173\',\n									10,\n									\'133\',\n									\'133\',\n									\'2019-09-28\',\n									\'2019-09-27 09-07-15\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27678\',\n									\'152.31\',\n									\'8.16\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-27 09:07:15','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34347\',\n									\'1\',\n									\'8.156583\')'),('2019-09-27 09:07:15','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5.14,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27678\'\n							AND orderlineno = \'0\''),('2019-09-27 09:07:15','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5.14\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-09-27 09:07:15','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														\'27173\',\n														\'AN\',\n														\'2019-09-28\',\n														\'133\',\n														\'133\',\n														\'12\',\n														\'94\',\n														\'27678\',\n														\'-5.14\',\n														\'0\',\n														\'0.0000\',\n														\'-45538.3101\',\n														\'\' )'),('2019-09-27 09:07:15','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57089\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-27 09:07:15','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										\'94\',\n										\'61.68\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'5.14\',\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 = \'133\'\n								AND custbranch.branchcode=\'133\''),('2019-09-27 09:07:15','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27173\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'133 - FISH x 5.14 @ 12\',\n											\'-61.68\')'),('2019-09-27 09:07:15','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5.99,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27678\'\n							AND orderlineno = \'1\''),('2019-09-27 09:07:15','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5.99\n						WHERE locstock.stockid = \'LCPS\'\n						AND loccode = \'AN\''),('2019-09-27 09:07:15','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														\'27173\',\n														\'AN\',\n														\'2019-09-28\',\n														\'133\',\n														\'133\',\n														\'15.13\',\n														\'94\',\n														\'27678\',\n														\'-5.99\',\n														\'0\',\n														\'0.0000\',\n														\'-46523.02\',\n														\'\' )'),('2019-09-27 09:07:15','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57090\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-27 09:07:15','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										\'94\',\n										\'90.63\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'5.99\',\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-09-27 09:07:15','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27173\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'133 - LCPS x 5.99 @ 15.13\',\n											\'-90.63\')'),('2019-09-27 09:07:15','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27173\',\n										\'2019-09-28\',\n										\'94\',\n										\'1100\',\n										\'133\',\n										\'160.47\')'),('2019-09-27 09:07:15','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27173\',\n											\'2019-09-28\',\n											\'94\',\n											\'2300\',\n											\'133\',\n											\'-8.16\')'),('2019-09-27 09:07:15','zaabed','UPDATE gltrans SET amount = amount - -0.000000000000003552713678800501\n								WHERE counterindex = \'123056\''),('2019-09-27 11:42: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								\'27679\',\n								\'TM044\',\n								\'C008\',\n								\'pick up\',\n								\'\',\n								\'2019-09-27 11:42\',\n								\'DE\',\n								\'10\',\n								\'CURRY HOUSE\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-27 11:42: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					\'27679\',\n					\'LM\',\n					\'17.43\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 11:42: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					\'1\',\n					\'27679\',\n					\'FISH\',\n					\'12.00\',\n					\'19.2\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 11:42:53','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27174\')\n			WHERE orderno= \'27679\''),('2019-09-27 11:42: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									\'27174\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-09-28\',\n									\'2019-09-27 11-42-53\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27679\',\n									\'404.7\',\n									\'15.69\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-27 11:42:53','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34348\',\n									\'1\',\n									\'15.687\')'),('2019-09-27 11:42:53','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27679\'\n							AND orderlineno = \'0\''),('2019-09-27 11:42:53','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-09-27 11:42: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 (\'LM\',\n														10,\n														\'27174\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM044\',\n														\'C008\',\n														\'17.43\',\n														\'94\',\n														\'27679\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-32564.78\',\n														\'\' )'),('2019-09-27 11:42:53','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57091\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-27 11:42: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										\'94\',\n										\'174.3\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\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 = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-09-27 11:42:53','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27174\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM044 - LM x 10 @ 17.43\',\n											\'-174.3\')'),('2019-09-27 11:42:53','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 19.2,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27679\'\n							AND orderlineno = \'1\''),('2019-09-27 11:42:53','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 19.2\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-09-27 11:42: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 (\'FISH\',\n														10,\n														\'27174\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM044\',\n														\'C008\',\n														\'12\',\n														\'94\',\n														\'27679\',\n														\'-19.2\',\n														\'0\',\n														\'0.0000\',\n														\'-45557.5101\',\n														\'marlin\' )'),('2019-09-27 11:42:53','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57092\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-27 11:42: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										\'94\',\n										\'230.4\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'19.2\',\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-09-27 11:42:53','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27174\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM044 - FISH x 19.2 @ 12\',\n											\'-230.4\')'),('2019-09-27 11:42:53','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27174\',\n										\'2019-09-28\',\n										\'94\',\n										\'1100\',\n										\'TM044\',\n										\'420.39\')'),('2019-09-27 11:42:53','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27174\',\n											\'2019-09-28\',\n											\'94\',\n											\'2300\',\n											\'TM044\',\n											\'-15.69\')'),('2019-09-27 11:42:53','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000005861977570020827\n								WHERE counterindex = \'123060\''),('2019-09-27 13:26: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								\'27680\',\n								\'TM074\',\n								\'P001\',\n								\'centerpoint\',\n								\'\',\n								\'2019-09-27 13:26\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-27 13:26: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					\'27680\',\n					\'MBT\',\n					\'9.50\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 13:26:09','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27175\')\n			WHERE orderno= \'27680\''),('2019-09-27 13:26: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									\'27175\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-09-28\',\n									\'2019-09-27 13-26-09\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27680\',\n									\'142.5\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-27 13:26:09','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34349\',\n									\'1\',\n									\'0\')'),('2019-09-27 13:26:09','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27680\'\n							AND orderlineno = \'0\''),('2019-09-27 13:26:09','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-09-27 13:26:09','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'MBT\',\n														10,\n														\'27175\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'94\',\n														\'27680\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-7572.6\',\n														\'\' )'),('2019-09-27 13:26:09','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57093\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-27 13:26: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										\'94\',\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-09-27 13:26:09','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27175\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM074 - MBT x 15 @ 9.5\',\n											\'-142.5\')'),('2019-09-27 13:26:09','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27175\',\n										\'2019-09-28\',\n										\'94\',\n										\'1100\',\n										\'TM074\',\n										\'142.5\')'),('2019-09-27 13:30:40','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								\'27681\',\n								\'TM057\',\n								\'I002\',\n								\'00024451\',\n								\'\',\n								\'2019-09-27 13:30\',\n								\'DE\',\n								\'10\',\n								\'INTERNATIONAL SCHOOL SUVA\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-27 13:30:40','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					\'27681\',\n					\'FF\',\n					\'16.97\',\n					\'10\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 13:30:45','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27176\')\n			WHERE orderno= \'27681\''),('2019-09-27 13:30:45','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'27176\',\n									10,\n									\'TM057\',\n									\'I002\',\n									\'2019-09-28\',\n									\'2019-09-27 13-30-45\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27681\',\n									\'169.7\',\n									\'15.27\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-27 13:30:45','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34350\',\n									\'1\',\n									\'15.273\')'),('2019-09-27 13:30:45','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27681\'\n							AND orderlineno = \'0\''),('2019-09-27 13:30:45','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-09-27 13:30:45','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FF\',\n														10,\n														\'27176\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM057\',\n														\'I002\',\n														\'16.97\',\n														\'94\',\n														\'27681\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-21447.72\',\n														\'marlin\' )'),('2019-09-27 13:30:45','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57094\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-27 13:30:45','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'169.7\',\n										\'0\',\n										\'TM057\',\n										\'I002\',\n										\'10\',\n										\'0\',\n										\'FF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FF\'\n								AND custbranch.debtorno = \'TM057\'\n								AND custbranch.branchcode=\'I002\''),('2019-09-27 13:30:45','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27176\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM057 - FF x 10 @ 16.97\',\n											\'-169.7\')'),('2019-09-27 13:30:45','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27176\',\n										\'2019-09-28\',\n										\'94\',\n										\'1100\',\n										\'TM057\',\n										\'184.97\')'),('2019-09-27 13:30:45','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27176\',\n											\'2019-09-28\',\n											\'94\',\n											\'2300\',\n											\'TM057\',\n											\'-15.27\')'),('2019-09-27 13:33: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								\'27682\',\n								\'TM087\',\n								\'S051\',\n								\'12450\',\n								\'\',\n								\'2019-09-27 13:33\',\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-09-28\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-27 13:33: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					\'27682\',\n					\'FF\',\n					\'16.97\',\n					\'10.2\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 13:33: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					\'27682\',\n					\'CHICKEN\',\n					\'18.0\',\n					\'7.5\',\n					\'0\',\n					\'supreme\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 13:34:09','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27177\')\n			WHERE orderno= \'27682\''),('2019-09-27 13:34: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									\'27177\',\n									10,\n									\'TM087\',\n									\'S051\',\n									\'2019-09-28\',\n									\'2019-09-27 13-34-09\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27682\',\n									\'308.09\',\n									\'27.73\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-27 13:34:09','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34351\',\n									\'1\',\n									\'27.72846\')'),('2019-09-27 13:34:09','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10.2,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27682\'\n							AND orderlineno = \'0\''),('2019-09-27 13:34:09','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10.2\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-09-27 13:34: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 (\'FF\',\n														10,\n														\'27177\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM087\',\n														\'S051\',\n														\'16.97\',\n														\'94\',\n														\'27682\',\n														\'-10.2\',\n														\'0\',\n														\'0.0000\',\n														\'-21457.92\',\n														\'marlin\' )'),('2019-09-27 13:34:09','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57095\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-27 13:34: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										\'94\',\n										\'173.09\',\n										\'0\',\n										\'TM087\',\n										\'S051\',\n										\'10.2\',\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 = \'TM087\'\n								AND custbranch.branchcode=\'S051\''),('2019-09-27 13:34:09','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27177\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM087 - FF x 10.2 @ 16.97\',\n											\'-173.09\')'),('2019-09-27 13:34:09','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 7.5,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27682\'\n							AND orderlineno = \'1\''),('2019-09-27 13:34:09','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 7.5\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-27 13:34: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 (\'CHICKEN\',\n														10,\n														\'27177\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM087\',\n														\'S051\',\n														\'18\',\n														\'94\',\n														\'27682\',\n														\'-7.5\',\n														\'0\',\n														\'0.0000\',\n														\'-89445.92\',\n														\'supreme\' )'),('2019-09-27 13:34:09','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57096\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-27 13:34: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										\'94\',\n										\'135\',\n										\'0\',\n										\'TM087\',\n										\'S051\',\n										\'7.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-09-27 13:34:09','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27177\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM087 - CHICKEN x 7.5 @ 18\',\n											\'-135\')'),('2019-09-27 13:34:09','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27177\',\n										\'2019-09-28\',\n										\'94\',\n										\'1100\',\n										\'TM087\',\n										\'335.82\')'),('2019-09-27 13:34:09','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27177\',\n											\'2019-09-28\',\n											\'94\',\n											\'2300\',\n											\'TM087\',\n											\'-27.73\')'),('2019-09-27 13:34:09','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000003907985046680551\n								WHERE counterindex = \'123069\''),('2019-09-27 13:37:16','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27683\',\n								\'TM051\',\n								\'F021\',\n								\'0172\',\n								\'\',\n								\'2019-09-27 13:37\',\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-09-28\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-27 13:37:16','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27683\',\n					\'C001\',\n					\'6.88\',\n					\'50\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 13:37:16','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27683\',\n					\'CHICKEN\',\n					\'136.24\',\n					\'1\',\n					\'0\',\n					\'1.5\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 13:37:16','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27683\',\n					\'CP\',\n					\'18.81\',\n					\'8\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 13:37:30','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27178\')\n			WHERE orderno= \'27683\''),('2019-09-27 13:37: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									\'27178\',\n									10,\n									\'TM051\',\n									\'F021\',\n									\'2019-09-28\',\n									\'2019-09-27 13-37-30\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27683\',\n									\'630.72\',\n									\'56.76\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-27 13:37:30','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34352\',\n									\'1\',\n									\'56.7648\')'),('2019-09-27 13:37:30','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 50,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27683\'\n							AND orderlineno = \'0\''),('2019-09-27 13:37:30','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 50\n						WHERE locstock.stockid = \'C001\'\n						AND loccode = \'AN\''),('2019-09-27 13:37: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 (\'C001\',\n														10,\n														\'27178\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM051\',\n														\'F021\',\n														\'6.88\',\n														\'94\',\n														\'27683\',\n														\'-50\',\n														\'0\',\n														\'0.0000\',\n														\'-5290.4\',\n														\'\' )'),('2019-09-27 13:37:30','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57097\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-27 13:37: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										\'94\',\n										\'344\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'50\',\n										\'0\',\n										\'C001\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C001\'\n								AND custbranch.debtorno = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-09-27 13:37:30','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27178\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM051 - C001 x 50 @ 6.88\',\n											\'-344\')'),('2019-09-27 13:37:30','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 1,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27683\'\n							AND orderlineno = \'1\''),('2019-09-27 13:37:30','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 1\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-27 13:37: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 (\'CHICKEN\',\n														10,\n														\'27178\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM051\',\n														\'F021\',\n														\'136.24\',\n														\'94\',\n														\'27683\',\n														\'-1\',\n														\'0\',\n														\'0.0000\',\n														\'-89446.92\',\n														\'1.5\' )'),('2019-09-27 13:37:30','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57098\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-27 13:37: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										\'94\',\n										\'136.24\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'1\',\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 = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-09-27 13:37:30','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27178\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM051 - CHICKEN x 1 @ 136.24\',\n											\'-136.24\')'),('2019-09-27 13:37:30','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 8,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27683\'\n							AND orderlineno = \'2\''),('2019-09-27 13:37:30','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 8\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-27 13:37: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 (\'CP\',\n														10,\n														\'27178\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM051\',\n														\'F021\',\n														\'18.81\',\n														\'94\',\n														\'27683\',\n														\'-8\',\n														\'0\',\n														\'0.0000\',\n														\'-308170.65\',\n														\'\' )'),('2019-09-27 13:37:30','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57099\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-27 13:37: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										\'94\',\n										\'150.48\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'8\',\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 = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-09-27 13:37:30','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27178\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM051 - CP x 8 @ 18.81\',\n											\'-150.48\')'),('2019-09-27 13:37:30','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27178\',\n										\'2019-09-28\',\n										\'94\',\n										\'1100\',\n										\'TM051\',\n										\'687.48\')'),('2019-09-27 13:37:30','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27178\',\n											\'2019-09-28\',\n											\'94\',\n											\'2300\',\n											\'TM051\',\n											\'-56.76\')'),('2019-09-27 13:45: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								\'27684\',\n								\'TM092\',\n								\'T031\',\n								\'448518m.masala\',\n								\'\',\n								\'2019-09-27 13:45\',\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-09-28\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-27 13:45: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					\'27684\',\n					\'FISH\',\n					\'12.00\',\n					\'5\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 13:45:41','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27179\')\n			WHERE orderno= \'27684\''),('2019-09-27 13:45: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									\'27179\',\n									10,\n									\'TM092\',\n									\'T031\',\n									\'2019-09-28\',\n									\'2019-09-27 13-45-41\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27684\',\n									\'60\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-27 13:45:41','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34353\',\n									\'1\',\n									\'0\')'),('2019-09-27 13:45:41','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27684\'\n							AND orderlineno = \'0\''),('2019-09-27 13:45:41','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-09-27 13:45: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														\'27179\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM092\',\n														\'T031\',\n														\'12\',\n														\'94\',\n														\'27684\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-45562.5101\',\n														\'marlin\' )'),('2019-09-27 13:45:41','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57100\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-27 13:45: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										\'94\',\n										\'60\',\n										\'0\',\n										\'TM092\',\n										\'T031\',\n										\'5\',\n										\'0\',\n										\'FISH\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FISH\'\n								AND custbranch.debtorno = \'TM092\'\n								AND custbranch.branchcode=\'T031\''),('2019-09-27 13:45:41','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27179\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM092 - FISH x 5 @ 12\',\n											\'-60\')'),('2019-09-27 13:45:41','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27179\',\n										\'2019-09-28\',\n										\'94\',\n										\'1100\',\n										\'TM092\',\n										\'60\')'),('2019-09-27 13:47:22','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27685\',\n								\'TM074\',\n								\'P001\',\n								\'HARBOUR CENTER\',\n								\'\',\n								\'2019-09-27 13:47\',\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-09-28\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-27 13:47:22','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27685\',\n					\'SF500G\',\n					\'16.40\',\n					\'5.5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 13:47:22','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27685\',\n					\'CP\',\n					\'18.81\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 13:47:22','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27685\',\n					\'FF\',\n					\'17\',\n					\'5.1\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 13:47:30','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27180\')\n			WHERE orderno= \'27685\''),('2019-09-27 13:47: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									\'27180\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-09-28\',\n									\'2019-09-27 13-47-30\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27685\',\n									\'270.95\',\n									\'16.27\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-27 13:47:30','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34354\',\n									\'1\',\n									\'16.2675\')'),('2019-09-27 13:47:30','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5.5,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27685\'\n							AND orderlineno = \'0\''),('2019-09-27 13:47:30','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5.5\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-09-27 13:47: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 (\'SF500G\',\n														10,\n														\'27180\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'94\',\n														\'27685\',\n														\'-5.5\',\n														\'0\',\n														\'0.0000\',\n														\'-9706.781\',\n														\'\' )'),('2019-09-27 13:47:30','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57101\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-27 13:47: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										\'94\',\n										\'90.2\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'5.5\',\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-09-27 13:47:30','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27180\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM074 - SF500G x 5.5 @ 16.4\',\n											\'-90.2\')'),('2019-09-27 13:47:30','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27685\'\n							AND orderlineno = \'1\''),('2019-09-27 13:47:30','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-27 13:47: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 (\'CP\',\n														10,\n														\'27180\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'94\',\n														\'27685\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-308175.65\',\n														\'\' )'),('2019-09-27 13:47:30','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57102\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-27 13:47: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										\'94\',\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-09-27 13:47:30','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27180\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM074 - CP x 5 @ 18.81\',\n											\'-94.05\')'),('2019-09-27 13:47:30','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5.1,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27685\'\n							AND orderlineno = \'2\''),('2019-09-27 13:47:30','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5.1\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-09-27 13:47: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 (\'FF\',\n														10,\n														\'27180\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM074\',\n														\'P001\',\n														\'17\',\n														\'94\',\n														\'27685\',\n														\'-5.1\',\n														\'0\',\n														\'0.0000\',\n														\'-21463.02\',\n														\'marlin\' )'),('2019-09-27 13:47:30','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57103\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-27 13:47: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										\'94\',\n										\'86.7\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'5.1\',\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-09-27 13:47:30','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27180\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM074 - FF x 5.1 @ 17\',\n											\'-86.7\')'),('2019-09-27 13:47:30','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27180\',\n										\'2019-09-28\',\n										\'94\',\n										\'1100\',\n										\'TM074\',\n										\'287.22\')'),('2019-09-27 13:47:30','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27180\',\n											\'2019-09-28\',\n											\'94\',\n											\'2300\',\n											\'TM074\',\n											\'-16.27\')'),('2019-09-27 13:47:30','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000003907985046680551\n								WHERE counterindex = \'123080\''),('2019-09-27 16:33:39','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								\'27686\',\n								\'TM074\',\n								\'P001\',\n								\'HARBOUR CENTER\',\n								\'\',\n								\'2019-09-27 16:33\',\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-09-28\',\n								\'2019-09-28\',\n								\'2019-09-28\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-27 16:33:39','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					\'27686\',\n					\'MBT\',\n					\'9.5\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-27\'\n				)'),('2019-09-27 16:33:48','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27181\')\n			WHERE orderno= \'27686\''),('2019-09-27 16:33: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									\'27181\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-09-28\',\n									\'2019-09-27 16-33-48\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27686\',\n									\'47.5\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-27 16:33:48','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34355\',\n									\'1\',\n									\'0\')'),('2019-09-27 16:33:48','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-09-28\',\n								completed=1\n							WHERE orderno = \'27686\'\n							AND orderlineno = \'0\''),('2019-09-27 16:33:48','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-09-27 16:33: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 (\'MBT\',\n														10,\n														\'27181\',\n														\'AN\',\n														\'2019-09-28\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'94\',\n														\'27686\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-7577.6\',\n														\'\' )'),('2019-09-27 16:33:48','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57104\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-09-27 16:33: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										\'94\',\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-09-27 16:33:48','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27181\',\n											\'2019-09-28\',\n											\'94\',\n											\'4100\',\n											\'TM074 - MBT x 5 @ 9.5\',\n											\'-47.5\')'),('2019-09-27 16:33:48','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27181\',\n										\'2019-09-28\',\n										\'94\',\n										\'1100\',\n										\'TM074\',\n										\'47.5\')'),('2019-09-27 16:36:55','zaabed','UPDATE debtortrans\n				SET alloc = alloc + 94.5,\n					settled=\'0\'\n				WHERE transno = \'27180\'\n				AND type=10'),('2019-09-27 16:36: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									alloc,\n									settled)\n						VALUES (2102,\n							11,\n							\'TM074\',\n							\'P001\',\n							\'2019-09-27\',\n							\'2019-09-27 16-36-55\',\n							\'94\',\n							\'Inv-27180\',\n							\'DE\',\n							\'27685\',\n							\'-86.7\',\n							\'-7.8\',\n							\'0\',\n							\'1\',\n							\'\',\n							\'-94.5\',\n							\'1\')'),('2019-09-27 16:36:55','zaabed','INSERT INTO debtortranstaxes (\n							debtortransid,\n							taxauthid,\n							taxamount)\n				VALUES (\'34356\',\n					\'1\',\n					\'-7.803\')'),('2019-09-27 16:36:55','zaabed','INSERT INTO custallocns (amt,\n						transid_allocfrom,\n						transid_allocto,\n						datealloc)\n			VALUES (\'94.5\',\n				\'34356\',\n				\'34354\',\n				\'2019-09-27\')'),('2019-09-27 16:36:55','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced - 5.1,\n								completed=0\n						WHERE orderno = \'27685\'\n						AND stkcode = \'FF\'\n						AND quantity &gt;=5.1'),('2019-09-27 16:36:55','zaabed','UPDATE locstock\n								SET locstock.quantity = locstock.quantity + 5.1\n								WHERE locstock.stockid = \'FF\'\n								AND loccode = \'AN\''),('2019-09-27 16:36: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 (\'FF\',\n													11,\n													\'2102\',\n													\'AN\',\n													\'2019-09-27\',\n													\'TM074\',\n													\'P001\',\n													\'17\',\n													\'94\',\n													\'Ex Inv - 27180\',\n													\'5.1\',\n													\'0\',\n													\'0.0000\',\n													\'-21457.92\',\n													\'marlin\')'),('2019-09-27 16:36:55','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n					VALUES (\'57105\',\n						\'1\',\n						\'0.09\',\n						\'1\',\n						\'0\')'),('2019-09-27 16:36: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							\'94\',\n							\'-86.7\',\n							\'0\',\n							\'TM074\',\n							\'P001\',\n							\'-5.1\',\n							\'0\',\n							\'FF\',\n							custbranch.area,\n							1,\n							\'fe\',\n							stockmaster.categoryid\n						FROM stockmaster,\n							custbranch\n						WHERE stockmaster.stockid = \'FF\'\n						AND custbranch.debtorno = \'TM074\'\n						AND custbranch.branchcode=\'P001\''),('2019-09-27 16:36:55','zaabed','INSERT INTO gltrans (type,\n							typeno,\n							trandate,\n							periodno,\n							account,\n							narrative,\n							amount)\n					VALUES (11,\n						\'2102\',\n						\'2019-09-27\',\n						\'94\',\n						\'4100\',\n						\'TM074 - FF x 5.1 @ 17.0000\',\n						\'86.7\'\n						)'),('2019-09-27 16:36:55','zaabed','INSERT INTO gltrans (type,\n							typeno,\n							trandate,\n							periodno,\n							account,\n							narrative,\n							amount)\n					VALUES (11,\n						\'2102\',\n						\'2019-09-27\',\n						\'94\',\n						\'1100\',\n						\'TM074\',\n						\'-94.5\'\n					)'),('2019-09-27 16:36:55','zaabed','INSERT INTO gltrans (\n						type,\n						typeno,\n						trandate,\n						periodno,\n						account,\n						narrative,\n						amount\n						)\n					VALUES (\n						11,\n						\'2102\',\n						\'2019-09-27\',\n						\'94\',\n						\'2300\',\n						\'TM074\',\n						\'7.803\'\n					)'),('2019-09-27 16:36:55','zaabed','UPDATE gltrans SET amount = amount - 0.0030000000000027782\n								WHERE counterindex = \'123087\''),('2019-09-28 08:58:33','zaabed','UPDATE config SET confvalue = \'2019-09-28\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-09-28 09:09: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								\'27687\',\n								\'TM020\',\n								\'R010\',\n								\'19102-032008ors\',\n								\'\',\n								\'2019-09-28 09:09\',\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-09-29\',\n								\'2019-09-29\',\n								\'2019-09-29\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-28 09:09: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					\'27687\',\n					\'CHICKEN\',\n					\'8.25\',\n					\'150\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:09: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					\'27687\',\n					\'CHS\',\n					\'8.25\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:09: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					\'2\',\n					\'27687\',\n					\'CHICKEN\',\n					\'8.72\',\n					\'80\',\n					\'0\',\n					\'wings\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:09: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					\'3\',\n					\'27687\',\n					\'CP\',\n					\'14.50\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:09: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					\'4\',\n					\'27687\',\n					\'LN\',\n					\'11.47\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:09: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					\'5\',\n					\'27687\',\n					\'LSP\',\n					\'8.72\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:09: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					\'6\',\n					\'27687\',\n					\'GB\',\n					\'8.72\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:09: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					\'7\',\n					\'27687\',\n					\'ST\',\n					\'9.13\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:09: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					\'8\',\n					\'27687\',\n					\'SW\',\n					\'8.72\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:10:00','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27182\')\n			WHERE orderno= \'27687\''),('2019-09-28 09:10: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									\'27182\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-09-29\',\n									\'2019-09-28 09-10-00\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27687\',\n									\'7495.9\',\n									\'674.63\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-28 09:10:00','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34357\',\n									\'1\',\n									\'674.631\')'),('2019-09-28 09:10:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 150,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27687\'\n							AND orderlineno = \'0\''),('2019-09-28 09:10:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 150\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-28 09:10: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 (\'CHICKEN\',\n														10,\n														\'27182\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'94\',\n														\'27687\',\n														\'-150\',\n														\'0\',\n														\'0.0000\',\n														\'-89596.92\',\n														\'\' )'),('2019-09-28 09:10:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57106\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:10: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										\'94\',\n										\'1237.5\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'150\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:10:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27182\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CHICKEN x 150 @ 8.25\',\n											\'-1237.5\')'),('2019-09-28 09:10:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27687\'\n							AND orderlineno = \'1\''),('2019-09-28 09:10:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'CHS\'\n						AND loccode = \'AN\''),('2019-09-28 09:10: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 (\'CHS\',\n														10,\n														\'27182\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'94\',\n														\'27687\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-26770\',\n														\'\' )'),('2019-09-28 09:10:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57107\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:10: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										\'94\',\n										\'660\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'80\',\n										\'0\',\n										\'CHS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHS\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:10:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27182\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CHS x 80 @ 8.25\',\n											\'-660\')'),('2019-09-28 09:10:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27687\'\n							AND orderlineno = \'2\''),('2019-09-28 09:10:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-28 09:10: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 (\'CHICKEN\',\n														10,\n														\'27182\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.72\',\n														\'94\',\n														\'27687\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-89676.92\',\n														\'wings\' )'),('2019-09-28 09:10:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57108\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:10: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										\'94\',\n										\'697.6\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'80\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:10:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27182\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CHICKEN x 80 @ 8.72\',\n											\'-697.6\')'),('2019-09-28 09:10:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27687\'\n							AND orderlineno = \'3\''),('2019-09-28 09:10:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-28 09:10:00','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'27182\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'14.5\',\n														\'94\',\n														\'27687\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-308255.65\',\n														\'\' )'),('2019-09-28 09:10:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57109\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:10: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										\'94\',\n										\'1160\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'80\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:10:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27182\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CP x 80 @ 14.5\',\n											\'-1160\')'),('2019-09-28 09:10:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27687\'\n							AND orderlineno = \'4\''),('2019-09-28 09:10:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-09-28 09:10: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 (\'LN\',\n														10,\n														\'27182\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'11.47\',\n														\'94\',\n														\'27687\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-261304.12\',\n														\'\' )'),('2019-09-28 09:10:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57110\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:10: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										\'94\',\n										\'917.6\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'80\',\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-09-28 09:10:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27182\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - LN x 80 @ 11.47\',\n											\'-917.6\')'),('2019-09-28 09:10:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27687\'\n							AND orderlineno = \'5\''),('2019-09-28 09:10:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'LSP\'\n						AND loccode = \'AN\''),('2019-09-28 09:10: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 (\'LSP\',\n														10,\n														\'27182\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.72\',\n														\'94\',\n														\'27687\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-40044.34\',\n														\'\' )'),('2019-09-28 09:10:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57111\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:10: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										\'94\',\n										\'697.6\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'80\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:10:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27182\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - LSP x 80 @ 8.72\',\n											\'-697.6\')'),('2019-09-28 09:10:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27687\'\n							AND orderlineno = \'6\''),('2019-09-28 09:10:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'GB\'\n						AND loccode = \'AN\''),('2019-09-28 09:10: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 (\'GB\',\n														10,\n														\'27182\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.72\',\n														\'94\',\n														\'27687\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-12405.75\',\n														\'\' )'),('2019-09-28 09:10:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57112\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:10: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										\'94\',\n										\'697.6\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'80\',\n										\'0\',\n										\'GB\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'GB\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:10:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27182\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - GB x 80 @ 8.72\',\n											\'-697.6\')'),('2019-09-28 09:10:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27687\'\n							AND orderlineno = \'7\''),('2019-09-28 09:10:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'ST\'\n						AND loccode = \'AN\''),('2019-09-28 09:10: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 (\'ST\',\n														10,\n														\'27182\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'9.13\',\n														\'94\',\n														\'27687\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-6132\',\n														\'\' )'),('2019-09-28 09:10:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57113\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:10: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										\'94\',\n										\'730.4\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'80\',\n										\'0\',\n										\'ST\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'ST\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:10:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27182\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - ST x 80 @ 9.13\',\n											\'-730.4\')'),('2019-09-28 09:10:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27687\'\n							AND orderlineno = \'8\''),('2019-09-28 09:10:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'SW\'\n						AND loccode = \'AN\''),('2019-09-28 09:10: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 (\'SW\',\n														10,\n														\'27182\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.72\',\n														\'94\',\n														\'27687\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-9977.47\',\n														\'\' )'),('2019-09-28 09:10:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57114\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:10: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										\'94\',\n										\'697.6\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'80\',\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-09-28 09:10:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27182\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - SW x 80 @ 8.72\',\n											\'-697.6\')'),('2019-09-28 09:10:00','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27182\',\n										\'2019-09-29\',\n										\'94\',\n										\'1100\',\n										\'TM020\',\n										\'8170.53\')'),('2019-09-28 09:10:00','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27182\',\n											\'2019-09-29\',\n											\'94\',\n											\'2300\',\n											\'TM020\',\n											\'-674.63\')'),('2019-09-28 09:10:00','zaabed','UPDATE gltrans SET amount = amount - -0.0000000000007958078640513122\n								WHERE counterindex = \'123090\''),('2019-09-28 09:14:06','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27688\',\n								\'TM020\',\n								\'R010\',\n								\'19102-032013sgt\',\n								\'\',\n								\'2019-09-28 09:14\',\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-09-29\',\n								\'2019-09-29\',\n								\'2019-09-29\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-28 09:14:06','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27688\',\n					\'CHICKEN\',\n					\'8.25\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:14:06','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27688\',\n					\'CHS\',\n					\'8.25\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:14:06','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27688\',\n					\'CHICKEN\',\n					\'8.72\',\n					\'20\',\n					\'0\',\n					\'wings\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:14:06','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'3\',\n					\'27688\',\n					\'LN\',\n					\'11.47\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:14:06','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'4\',\n					\'27688\',\n					\'LSP\',\n					\'8.72\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:14:06','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'5\',\n					\'27688\',\n					\'SW\',\n					\'8.72\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:14:06','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'6\',\n					\'27688\',\n					\'CP\',\n					\'14.50\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:14:06','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'7\',\n					\'27688\',\n					\'GB\',\n					\'8.72\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 09:14:31','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27183\')\n			WHERE orderno= \'27688\''),('2019-09-28 09:14:31','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'27183\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-09-29\',\n									\'2019-09-28 09-14-31\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27688\',\n									\'1392.6\',\n									\'125.33\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-28 09:14:31','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34358\',\n									\'1\',\n									\'125.334\')'),('2019-09-28 09:14:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27688\'\n							AND orderlineno = \'0\''),('2019-09-28 09:14:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'27183\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'94\',\n														\'27688\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-89716.92\',\n														\'\' )'),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57115\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:14:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'330\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'40\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:14:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27183\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CHICKEN x 40 @ 8.25\',\n											\'-330\')'),('2019-09-28 09:14:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27688\'\n							AND orderlineno = \'1\''),('2019-09-28 09:14:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CHS\'\n						AND loccode = \'AN\''),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHS\',\n														10,\n														\'27183\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'94\',\n														\'27688\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-26790\',\n														\'\' )'),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57116\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:14:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'165\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'20\',\n										\'0\',\n										\'CHS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHS\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:14:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27183\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CHS x 20 @ 8.25\',\n											\'-165\')'),('2019-09-28 09:14:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27688\'\n							AND orderlineno = \'2\''),('2019-09-28 09:14:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'27183\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.72\',\n														\'94\',\n														\'27688\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-89736.92\',\n														\'wings\' )'),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57117\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:14:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'174.4\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\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 = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:14:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27183\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CHICKEN x 20 @ 8.72\',\n											\'-174.4\')'),('2019-09-28 09:14:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27688\'\n							AND orderlineno = \'3\''),('2019-09-28 09:14:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LN\',\n														10,\n														\'27183\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'11.47\',\n														\'94\',\n														\'27688\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-261324.12\',\n														\'\' )'),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57118\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:14:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'229.4\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'20\',\n										\'0\',\n										\'LN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LN\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:14:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27183\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - LN x 20 @ 11.47\',\n											\'-229.4\')'),('2019-09-28 09:14:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27688\'\n							AND orderlineno = \'4\''),('2019-09-28 09:14:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'LSP\'\n						AND loccode = \'AN\''),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LSP\',\n														10,\n														\'27183\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.72\',\n														\'94\',\n														\'27688\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-40054.34\',\n														\'\' )'),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57119\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:14:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'87.2\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'10\',\n										\'0\',\n										\'LSP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LSP\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:14:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27183\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - LSP x 10 @ 8.72\',\n											\'-87.2\')'),('2019-09-28 09:14:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27688\'\n							AND orderlineno = \'5\''),('2019-09-28 09:14:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'SW\'\n						AND loccode = \'AN\''),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SW\',\n														10,\n														\'27183\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.72\',\n														\'94\',\n														\'27688\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-9997.47\',\n														\'\' )'),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57120\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:14:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'174.4\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'20\',\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-09-28 09:14:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27183\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - SW x 20 @ 8.72\',\n											\'-174.4\')'),('2019-09-28 09:14:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27688\'\n							AND orderlineno = \'6\''),('2019-09-28 09:14:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'27183\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'14.5\',\n														\'94\',\n														\'27688\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-308265.65\',\n														\'\' )'),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57121\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:14:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'145\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'10\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:14:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27183\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - CP x 10 @ 14.5\',\n											\'-145\')'),('2019-09-28 09:14:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27688\'\n							AND orderlineno = \'7\''),('2019-09-28 09:14:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'GB\'\n						AND loccode = \'AN\''),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'GB\',\n														10,\n														\'27183\',\n														\'AN\',\n														\'2019-09-29\',\n														\'TM020\',\n														\'R010\',\n														\'8.72\',\n														\'94\',\n														\'27688\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-12415.75\',\n														\'\' )'),('2019-09-28 09:14:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57122\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 09:14:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'94\',\n										\'87.2\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'10\',\n										\'0\',\n										\'GB\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'GB\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-09-28 09:14:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27183\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'TM020 - GB x 10 @ 8.72\',\n											\'-87.2\')'),('2019-09-28 09:14:31','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27183\',\n										\'2019-09-29\',\n										\'94\',\n										\'1100\',\n										\'TM020\',\n										\'1517.93\')'),('2019-09-28 09:14:31','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27183\',\n											\'2019-09-29\',\n											\'94\',\n											\'2300\',\n											\'TM020\',\n											\'-125.33\')'),('2019-09-28 09:14:31','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000007105427357601002\n								WHERE counterindex = \'123101\''),('2019-09-28 11:31:51','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								\'27689\',\n								\'M010\',\n								\'M010\',\n								\'\',\n								\'pick up\',\n								\'2019-09-28 11:31\',\n								\'DE\',\n								\'10\',\n								\'MECHANICAL SERVICE LTD\',\n								\'Suva\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-09-29\',\n								\'2019-09-29\',\n								\'2019-09-29\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-28 11:31:51','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					\'27689\',\n					\'CP\',\n					\'18.81\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-28\'\n				)'),('2019-09-28 11:32:04','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27184\')\n			WHERE orderno= \'27689\''),('2019-09-28 11:32:04','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									\'27184\',\n									10,\n									\'M010\',\n									\'M010\',\n									\'2019-09-29\',\n									\'2019-09-28 11-32-04\',\n									\'94\',\n									\'\',\n									\'DE\',\n									\'27689\',\n									\'188.1\',\n									\'16.93\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Jhairud\')'),('2019-09-28 11:32:04','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34359\',\n									\'1\',\n									\'16.929\')'),('2019-09-28 11:32:04','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-09-29\',\n								completed=1\n							WHERE orderno = \'27689\'\n							AND orderlineno = \'0\''),('2019-09-28 11:32:04','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-09-28 11:32:04','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														\'27184\',\n														\'AN\',\n														\'2019-09-29\',\n														\'M010\',\n														\'M010\',\n														\'18.81\',\n														\'94\',\n														\'27689\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-308275.65\',\n														\'\' )'),('2019-09-28 11:32:04','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57123\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-28 11:32:04','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										\'94\',\n										\'188.1\',\n										\'0\',\n										\'M010\',\n										\'M010\',\n										\'10\',\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 = \'M010\'\n								AND custbranch.branchcode=\'M010\''),('2019-09-28 11:32:04','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27184\',\n											\'2019-09-29\',\n											\'94\',\n											\'4100\',\n											\'M010 - CP x 10 @ 18.81\',\n											\'-188.1\')'),('2019-09-28 11:32:04','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27184\',\n										\'2019-09-29\',\n										\'94\',\n										\'1100\',\n										\'M010\',\n										\'205.03\')'),('2019-09-28 11:32:04','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27184\',\n											\'2019-09-29\',\n											\'94\',\n											\'2300\',\n											\'M010\',\n											\'-16.93\')'),('2019-09-30 10:12:28','jhairud','UPDATE config SET confvalue = \'2019-09-30\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-09-30 10:49:58','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								\'27690\',\n								\'TM020\',\n								\'R010\',\n								\'19107-002832\',\n								\'\',\n								\'2019-09-30 10:49\',\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-10-01\',\n								\'2019-10-01\',\n								\'2019-10-01\',\n								\'0\',\n								\'1\'\n								)'),('2019-09-30 10:49:58','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					\'27690\',\n					\'LN\',\n					\'11.47\',\n					\'215\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-09-30\'\n				)'),('2019-09-30 10:50:11','zaabed','INSERT INTO periods (periodno,\n													lastdate_in_period)\n												VALUES (\n													\'96\',\n													\'2019-11-30\')'),('2019-09-30 10:50:11','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27185\')\n			WHERE orderno= \'27690\''),('2019-09-30 10:50:11','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'27185\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-10-01\',\n									\'2019-09-30 10-50-11\',\n									\'95\',\n									\'\',\n									\'DE\',\n									\'27690\',\n									\'2466.05\',\n									\'221.94\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-09-30 10:50:11','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34360\',\n									\'1\',\n									\'221.9445\')'),('2019-09-30 10:50:11','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 215,\n								actualdispatchdate = \'2019-10-01\',\n								completed=1\n							WHERE orderno = \'27690\'\n							AND orderlineno = \'0\''),('2019-09-30 10:50:11','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 215\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-09-30 10:50:11','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LN\',\n														10,\n														\'27185\',\n														\'AN\',\n														\'2019-10-01\',\n														\'TM020\',\n														\'R010\',\n														\'11.47\',\n														\'95\',\n														\'27690\',\n														\'-215\',\n														\'0\',\n														\'0.0000\',\n														\'-261539.12\',\n														\'\' )'),('2019-09-30 10:50:11','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'57124\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-09-30 10:50:11','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'95\',\n										\'2466.05\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'215\',\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-09-30 10:50:11','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27185\',\n											\'2019-10-01\',\n											\'95\',\n											\'4100\',\n											\'TM020 - LN x 215 @ 11.47\',\n											\'-2466.05\')'),('2019-09-30 10:50:11','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27185\',\n										\'2019-10-01\',\n										\'95\',\n										\'1100\',\n										\'TM020\',\n										\'2687.99\')'),('2019-09-30 10:50:11','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27185\',\n											\'2019-10-01\',\n											\'95\',\n											\'2300\',\n											\'TM020\',\n											\'-221.94\')'),('2019-09-30 10:50:11','zaabed','UPDATE gltrans SET amount = amount - -0.0000000000003979039320256561\n								WHERE counterindex = \'123114\'');

--
