('2019-08-08 13:07:17','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26966\',\n											\'2019-08-09\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-10.94\')'),('2019-08-09 08:35:22','jhairud','UPDATE config SET confvalue = \'2019-08-09\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-09 10:40: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								\'27467\',\n								\'TM011\',\n								\'34\',\n								\'6912pickup\',\n								\'\',\n								\'2019-08-09 10:40\',\n								\'DE\',\n								\'10\',\n								\'HUNGRY HONCHOS\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-09 10:40: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					\'27467\',\n					\'FF\',\n					\'18.50\',\n					\'20.75\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 10:41:03','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26967\')\n			WHERE orderno= \'27467\''),('2019-08-09 10:41:03','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26967\',\n									10,\n									\'TM011\',\n									\'34\',\n									\'2019-08-10\',\n									\'2019-08-09 10-41-03\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27467\',\n									\'383.88\',\n									\'34.55\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-09 10:41:03','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34050\',\n									\'1\',\n									\'34.54875\')'),('2019-08-09 10:41:03','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20.75,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27467\'\n							AND orderlineno = \'0\''),('2019-08-09 10:41:03','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20.75\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-09 10:41:03','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FF\',\n														10,\n														\'26967\',\n														\'AN\',\n														\'2019-08-10\',\n														\'TM011\',\n														\'34\',\n														\'18.5\',\n														\'93\',\n														\'27467\',\n														\'-20.75\',\n														\'0\',\n														\'0.0000\',\n														\'-21027.37\',\n														\'marlin\' )'),('2019-08-09 10:41:03','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56650\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-09 10:41:03','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'383.88\',\n										\'0\',\n										\'TM011\',\n										\'34\',\n										\'20.75\',\n										\'0\',\n										\'FF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FF\'\n								AND custbranch.debtorno = \'TM011\'\n								AND custbranch.branchcode=\'34\''),('2019-08-09 10:41:03','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26967\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'TM011 - FF x 20.75 @ 18.5\',\n											\'-383.88\')'),('2019-08-09 10:41:03','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26967\',\n										\'2019-08-10\',\n										\'93\',\n										\'1100\',\n										\'TM011\',\n										\'418.43\')'),('2019-08-09 10:41:03','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26967\',\n											\'2019-08-10\',\n											\'93\',\n											\'2300\',\n											\'TM011\',\n											\'-34.55\')'),('2019-08-09 10:50:42','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27468\',\n								\'TM074\',\n								\'P001\',\n								\'sport/c\',\n								\'\',\n								\'2019-08-09 10:50\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-09 10:50:42','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27468\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 10:50:42','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27468\',\n					\'SF500G\',\n					\'16.40\',\n					\'8.8\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 10:50:49','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26968\')\n			WHERE orderno= \'27468\''),('2019-08-09 10:50: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									\'26968\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-10\',\n									\'2019-08-09 10-50-49\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27468\',\n									\'520.52\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-09 10:50:49','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34051\',\n									\'1\',\n									\'33.858\')'),('2019-08-09 10:50:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27468\'\n							AND orderlineno = \'0\''),('2019-08-09 10:50:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-09 10:50: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														\'26968\',\n														\'AN\',\n														\'2019-08-10\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27468\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306068.65\',\n														\'\' )'),('2019-08-09 10:50:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56651\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-09 10:50:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'376.2\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-09 10:50:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26968\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-09 10:50:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 8.8,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27468\'\n							AND orderlineno = \'1\''),('2019-08-09 10:50:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 8.8\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-09 10:50: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 (\'SF500G\',\n														10,\n														\'26968\',\n														\'AN\',\n														\'2019-08-10\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27468\',\n														\'-8.8\',\n														\'0\',\n														\'0.0000\',\n														\'-9575.281\',\n														\'\' )'),('2019-08-09 10:50:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56652\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-09 10:50:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'144.32\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'8.8\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-09 10:50:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26968\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 8.8 @ 16.4\',\n											\'-144.32\')'),('2019-08-09 10:50:49','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26968\',\n										\'2019-08-10\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'554.38\')'),('2019-08-09 10:50:49','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26968\',\n											\'2019-08-10\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-08-09 10:51: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								\'27469\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-08-09 10:51\',\n								\'DE\',\n								\'10\',\n								\'CURRY HOUSE\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-09 10:51: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					\'27469\',\n					\'CP\',\n					\'18.81\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 10:51:46','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26969\')\n			WHERE orderno= \'27469\''),('2019-08-09 10:51:46','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									\'26969\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-10\',\n									\'2019-08-09 10-51-46\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27469\',\n									\'752.4\',\n									\'67.72\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-09 10:51:46','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34052\',\n									\'1\',\n									\'67.716\')'),('2019-08-09 10:51:46','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27469\'\n							AND orderlineno = \'0\''),('2019-08-09 10:51:46','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-09 10:51:46','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														\'26969\',\n														\'AN\',\n														\'2019-08-10\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'93\',\n														\'27469\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-306108.65\',\n														\'\' )'),('2019-08-09 10:51:46','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56653\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-09 10:51:46','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'752.4\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'40\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-09 10:51:46','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26969\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'TM044 - CP x 40 @ 18.81\',\n											\'-752.4\')'),('2019-08-09 10:51:46','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26969\',\n										\'2019-08-10\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'820.12\')'),('2019-08-09 10:51:46','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26969\',\n											\'2019-08-10\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-67.72\')'),('2019-08-09 10:53: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								\'27470\',\n								\'TM009\',\n								\'30\',\n								\'15907LP3\',\n								\'\',\n								\'2019-08-09 10:53\',\n								\'DE\',\n								\'10\',\n								\'GOUNDAR SHIPPING LIMITED\',\n								\'P O BOX 672 SUVA\',\n								\'3301021\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-09 10:53: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					\'27470\',\n					\'LP\',\n					\'12.66\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 10:53:06','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26970\')\n			WHERE orderno= \'27470\''),('2019-08-09 10:53:06','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26970\',\n									10,\n									\'TM009\',\n									\'30\',\n									\'2019-08-10\',\n									\'2019-08-09 10-53-06\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27470\',\n									\'506.4\',\n									\'45.58\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-09 10:53:06','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34053\',\n									\'1\',\n									\'45.576\')'),('2019-08-09 10:53:06','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27470\'\n							AND orderlineno = \'0\''),('2019-08-09 10:53:06','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'LP\'\n						AND loccode = \'AN\''),('2019-08-09 10:53:06','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LP\',\n														10,\n														\'26970\',\n														\'AN\',\n														\'2019-08-10\',\n														\'TM009\',\n														\'30\',\n														\'12.66\',\n														\'93\',\n														\'27470\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-111530.16\',\n														\'\' )'),('2019-08-09 10:53:06','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56654\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-09 10:53:06','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'506.4\',\n										\'0\',\n										\'TM009\',\n										\'30\',\n										\'40\',\n										\'0\',\n										\'LP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LP\'\n								AND custbranch.debtorno = \'TM009\'\n								AND custbranch.branchcode=\'30\''),('2019-08-09 10:53:06','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26970\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'TM009 - LP x 40 @ 12.66\',\n											\'-506.4\')'),('2019-08-09 10:53:06','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26970\',\n										\'2019-08-10\',\n										\'93\',\n										\'1100\',\n										\'TM009\',\n										\'551.98\')'),('2019-08-09 10:53:06','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26970\',\n											\'2019-08-10\',\n											\'93\',\n											\'2300\',\n											\'TM009\',\n											\'-45.58\')'),('2019-08-09 10:53:06','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000004263256414560601\n								WHERE counterindex = \'122051\''),('2019-08-09 11:08:26','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27471\',\n								\'133\',\n								\'133\',\n								\'\',\n								\'\',\n								\'2019-08-09 11:08\',\n								\'DE\',\n								\'1\',\n								\'YUM YUM LTD \',\n								\'Bure 3 Kundan Complex, 198-200 Prncs Rd \',\n								\'Tamavua\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'3380500\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-09 11:08:26','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27471\',\n					\'LCPS\',\n					\'15.13\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 11:08:26','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27471\',\n					\'WW\',\n					\'15\',\n					\'3.5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 11:08:26','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27471\',\n					\'BTS\',\n					\'12.5\',\n					\'3.6\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 11:08:47','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26971\')\n			WHERE orderno= \'27471\''),('2019-08-09 11:08:47','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									\'26971\',\n									10,\n									\'133\',\n									\'133\',\n									\'2019-08-10\',\n									\'2019-08-09 11-08-47\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27471\',\n									\'400.1\',\n									\'27.23\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-09 11:08:47','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34054\',\n									\'1\',\n									\'27.234\')'),('2019-08-09 11:08:47','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27471\'\n							AND orderlineno = \'0\''),('2019-08-09 11:08:47','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'LCPS\'\n						AND loccode = \'AN\''),('2019-08-09 11:08:47','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														\'26971\',\n														\'AN\',\n														\'2019-08-10\',\n														\'133\',\n														\'133\',\n														\'15.13\',\n														\'93\',\n														\'27471\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-45921.89\',\n														\'\' )'),('2019-08-09 11:08:47','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56655\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-09 11:08:47','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'302.6\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'20\',\n										\'0\',\n										\'LCPS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LCPS\'\n								AND custbranch.debtorno = \'133\'\n								AND custbranch.branchcode=\'133\''),('2019-08-09 11:08:47','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26971\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'133 - LCPS x 20 @ 15.13\',\n											\'-302.6\')'),('2019-08-09 11:08:47','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.5,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27471\'\n							AND orderlineno = \'1\''),('2019-08-09 11:08:47','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.5\n						WHERE locstock.stockid = \'WW\'\n						AND loccode = \'AN\''),('2019-08-09 11:08:47','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 (\'WW\',\n														10,\n														\'26971\',\n														\'AN\',\n														\'2019-08-10\',\n														\'133\',\n														\'133\',\n														\'15\',\n														\'93\',\n														\'27471\',\n														\'-3.5\',\n														\'0\',\n														\'0.0000\',\n														\'-10537.01\',\n														\'\' )'),('2019-08-09 11:08:47','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56656\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-09 11:08:47','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'52.5\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'3.5\',\n										\'0\',\n										\'WW\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'WW\'\n								AND custbranch.debtorno = \'133\'\n								AND custbranch.branchcode=\'133\''),('2019-08-09 11:08:47','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26971\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'133 - WW x 3.5 @ 15\',\n											\'-52.5\')'),('2019-08-09 11:08:47','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.6,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27471\'\n							AND orderlineno = \'2\''),('2019-08-09 11:08:47','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.6\n						WHERE locstock.stockid = \'BTS\'\n						AND loccode = \'AN\''),('2019-08-09 11:08:47','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BTS\',\n														10,\n														\'26971\',\n														\'AN\',\n														\'2019-08-10\',\n														\'133\',\n														\'133\',\n														\'12.5\',\n														\'93\',\n														\'27471\',\n														\'-3.6\',\n														\'0\',\n														\'0.0000\',\n														\'-5489.71\',\n														\'\' )'),('2019-08-09 11:08:47','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56657\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-09 11:08:47','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'45\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'3.6\',\n										\'0\',\n										\'BTS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BTS\'\n								AND custbranch.debtorno = \'133\'\n								AND custbranch.branchcode=\'133\''),('2019-08-09 11:08:47','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26971\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'133 - BTS x 3.6 @ 12.5\',\n											\'-45\')'),('2019-08-09 11:08:47','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26971\',\n										\'2019-08-10\',\n										\'93\',\n										\'1100\',\n										\'133\',\n										\'427.33\')'),('2019-08-09 11:08:47','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26971\',\n											\'2019-08-10\',\n											\'93\',\n											\'2300\',\n											\'133\',\n											\'-27.23\')'),('2019-08-09 11:08:47','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000003907985046680551\n								WHERE counterindex = \'122054\''),('2019-08-09 11:33: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								\'27472\',\n								\'TM092\',\n								\'T031\',\n								\'448040MADRAS\',\n								\'\',\n								\'2019-08-09 11:33\',\n								\'DE\',\n								\'10\',\n								\'TAPPOOS LTD\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-09 11:33: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					\'27472\',\n					\'LP\',\n					\'19.27\',\n					\'30\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 11:33:17','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26972\')\n			WHERE orderno= \'27472\''),('2019-08-09 11:33:17','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26972\',\n									10,\n									\'TM092\',\n									\'T031\',\n									\'2019-08-10\',\n									\'2019-08-09 11-33-17\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27472\',\n									\'578.1\',\n									\'52.03\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-09 11:33:17','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34055\',\n									\'1\',\n									\'52.029\')'),('2019-08-09 11:33:17','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27472\'\n							AND orderlineno = \'0\''),('2019-08-09 11:33:17','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 30\n						WHERE locstock.stockid = \'LP\'\n						AND loccode = \'AN\''),('2019-08-09 11:33:17','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LP\',\n														10,\n														\'26972\',\n														\'AN\',\n														\'2019-08-10\',\n														\'TM092\',\n														\'T031\',\n														\'19.27\',\n														\'93\',\n														\'27472\',\n														\'-30\',\n														\'0\',\n														\'0.0000\',\n														\'-111560.16\',\n														\'\' )'),('2019-08-09 11:33:17','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56658\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-09 11:33:17','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'578.1\',\n										\'0\',\n										\'TM092\',\n										\'T031\',\n										\'30\',\n										\'0\',\n										\'LP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LP\'\n								AND custbranch.debtorno = \'TM092\'\n								AND custbranch.branchcode=\'T031\''),('2019-08-09 11:33:17','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26972\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'TM092 - LP x 30 @ 19.27\',\n											\'-578.1\')'),('2019-08-09 11:33:17','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26972\',\n										\'2019-08-10\',\n										\'93\',\n										\'1100\',\n										\'TM092\',\n										\'630.13\')'),('2019-08-09 11:33:17','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26972\',\n											\'2019-08-10\',\n											\'93\',\n											\'2300\',\n											\'TM092\',\n											\'-52.03\')'),('2019-08-09 13:37: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								\'27473\',\n								\'TM051\',\n								\'F021\',\n								\'0149\',\n								\'\',\n								\'2019-08-09 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-08-10\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-09 13:37: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					\'27473\',\n					\'C001\',\n					\'6.88\',\n					\'50\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 13:37:11','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27473\',\n					\'CP\',\n					\'18.81\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 13:37:19','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26973\')\n			WHERE orderno= \'27473\''),('2019-08-09 13:37:19','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									\'26973\',\n									10,\n									\'TM051\',\n									\'F021\',\n									\'2019-08-10\',\n									\'2019-08-09 13-37-19\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27473\',\n									\'626.15\',\n									\'56.35\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-09 13:37:19','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34056\',\n									\'1\',\n									\'56.3535\')'),('2019-08-09 13:37:19','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 50,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27473\'\n							AND orderlineno = \'0\''),('2019-08-09 13:37:19','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 50\n						WHERE locstock.stockid = \'C001\'\n						AND loccode = \'AN\''),('2019-08-09 13:37:19','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														\'26973\',\n														\'AN\',\n														\'2019-08-10\',\n														\'TM051\',\n														\'F021\',\n														\'6.88\',\n														\'93\',\n														\'27473\',\n														\'-50\',\n														\'0\',\n														\'0.0000\',\n														\'-4295.4\',\n														\'\' )'),('2019-08-09 13:37:19','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56659\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-09 13:37:19','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'344\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'50\',\n										\'0\',\n										\'C001\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C001\'\n								AND custbranch.debtorno = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-08-09 13:37:19','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26973\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'TM051 - C001 x 50 @ 6.88\',\n											\'-344\')'),('2019-08-09 13:37:19','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27473\'\n							AND orderlineno = \'1\''),('2019-08-09 13:37:19','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-09 13:37:19','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														\'26973\',\n														\'AN\',\n														\'2019-08-10\',\n														\'TM051\',\n														\'F021\',\n														\'18.81\',\n														\'93\',\n														\'27473\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-306123.65\',\n														\'\' )'),('2019-08-09 13:37:19','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56660\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-09 13:37:19','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'282.15\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\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 = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-08-09 13:37:19','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26973\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'TM051 - CP x 15 @ 18.81\',\n											\'-282.15\')'),('2019-08-09 13:37:19','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26973\',\n										\'2019-08-10\',\n										\'93\',\n										\'1100\',\n										\'TM051\',\n										\'682.5\')'),('2019-08-09 13:37:19','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26973\',\n											\'2019-08-10\',\n											\'93\',\n											\'2300\',\n											\'TM051\',\n											\'-56.35\')'),('2019-08-09 14:38:01','jhairud','INSERT INTO debtorsmaster (\n							debtorno,\n							name,\n							address1,\n							address2,\n							address3,\n							address4,\n							address5,\n							address6,\n							currcode,\n							clientsince,\n							holdreason,\n							paymentterms,\n							discount,\n							discountcode,\n							pymtdiscount,\n							creditlimit,\n							salestype,\n							invaddrbranch,\n							taxref,\n							customerpoline,\n							typeid)\n				VALUES (\'155\',\n					\'Taveuni Prison\',\n					\'Taveuni\',\n					\'\',\n					\'\',\n					\'\',\n					\'\',\n					\'\',\n					\'FJD\',\n					\'2019-08-09\',\n					\'1\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'0\',\n					\'100000\',\n					\'DE\',\n					\'0\',\n					\'\',\n					\'0\',\n					\'1\'\n					)'),('2019-08-09 14:38:09','jhairud','INSERT INTO custbranch (branchcode,\n						debtorno,\n						brname,\n						braddress1,\n						braddress2,\n						braddress3,\n						braddress4,\n						braddress5,\n						braddress6,\n						lat,\n						lng,\n 						specialinstructions,\n						estdeliverydays,\n						fwddate,\n						salesman,\n						phoneno,\n						faxno,\n						contactname,\n						area,\n						email,\n						taxgroupid,\n						defaultlocation,\n						brpostaddr1,\n						brpostaddr2,\n						brpostaddr3,\n						brpostaddr4,\n						disabletrans,\n						defaultshipvia,\n						custbranchcode,\n						deliverblind)\n				VALUES (\'155\',\n					\'155\',\n					\'Taveuni Prison\',\n					\'Taveuni\',\n					\'\',\n					\'\',\n					\'\',\n					\'\',\n					\'\',\n					\'0\',\n					\'0\',\n					\'\',\n					\'0\',\n					\'0\',\n					\'fe\',\n					\'\',\n					\'\',\n					\'\',\n					\'123\',\n					\'\',\n					\'1\',\n					\'AN\',\n					\'\',\n					\'\',\n					\'\',\n					\'\',\n					\'0\',\n					\'1\',\n					\'\',\n					\'1\'\n					)'),('2019-08-09 14:39:13','jhairud','INSERT INTO debtorsmaster (\n							debtorno,\n							name,\n							address1,\n							address2,\n							address3,\n							address4,\n							address5,\n							address6,\n							currcode,\n							clientsince,\n							holdreason,\n							paymentterms,\n							discount,\n							discountcode,\n							pymtdiscount,\n							creditlimit,\n							salestype,\n							invaddrbranch,\n							taxref,\n							customerpoline,\n							typeid)\n				VALUES (\'156\',\n					\'LABASA PRISON\',\n					\'LABASA\',\n					\'\',\n					\'\',\n					\'\',\n					\'\',\n					\'\',\n					\'FJD\',\n					\'2019-08-09\',\n					\'1\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'0\',\n					\'100000\',\n					\'DE\',\n					\'0\',\n					\'\',\n					\'0\',\n					\'1\'\n					)'),('2019-08-09 14:39:21','jhairud','INSERT INTO custbranch (branchcode,\n						debtorno,\n						brname,\n						braddress1,\n						braddress2,\n						braddress3,\n						braddress4,\n						braddress5,\n						braddress6,\n						lat,\n						lng,\n 						specialinstructions,\n						estdeliverydays,\n						fwddate,\n						salesman,\n						phoneno,\n						faxno,\n						contactname,\n						area,\n						email,\n						taxgroupid,\n						defaultlocation,\n						brpostaddr1,\n						brpostaddr2,\n						brpostaddr3,\n						brpostaddr4,\n						disabletrans,\n						defaultshipvia,\n						custbranchcode,\n						deliverblind)\n				VALUES (\'156\',\n					\'156\',\n					\'LABASA PRISON\',\n					\'LABASA\',\n					\'\',\n					\'\',\n					\'\',\n					\'\',\n					\'\',\n					\'0\',\n					\'0\',\n					\'\',\n					\'0\',\n					\'0\',\n					\'fe\',\n					\'\',\n					\'\',\n					\'\',\n					\'123\',\n					\'\',\n					\'1\',\n					\'AN\',\n					\'\',\n					\'\',\n					\'\',\n					\'\',\n					\'0\',\n					\'1\',\n					\'\',\n					\'1\'\n					)'),('2019-08-09 14:39:26','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27474\',\n								\'155\',\n								\'155\',\n								\'93061-000882\',\n								\'\',\n								\'2019-08-09 14:39\',\n								\'DE\',\n								\'1\',\n								\'Taveuni Prison\',\n								\'Taveuni\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'2019-08-10\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-09 14:39:26','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27474\',\n					\'LN\',\n					\'11.93\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-09\'\n				)'),('2019-08-09 14:39:31','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26974\')\n			WHERE orderno= \'27474\''),('2019-08-09 14:39: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									\'26974\',\n									10,\n									\'155\',\n									\'155\',\n									\'2019-08-10\',\n									\'2019-08-09 14-39-31\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27474\',\n									\'954.4\',\n									\'85.9\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-09 14:39:31','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34057\',\n									\'1\',\n									\'85.896\')'),('2019-08-09 14:39:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-08-10\',\n								completed=1\n							WHERE orderno = \'27474\'\n							AND orderlineno = \'0\''),('2019-08-09 14:39:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-08-09 14:39: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														\'26974\',\n														\'AN\',\n														\'2019-08-10\',\n														\'155\',\n														\'155\',\n														\'11.93\',\n														\'93\',\n														\'27474\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-259040.32\',\n														\'\' )'),('2019-08-09 14:39:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56661\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-09 14:39:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'954.4\',\n										\'0\',\n										\'155\',\n										\'155\',\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 = \'155\'\n								AND custbranch.branchcode=\'155\''),('2019-08-09 14:39:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26974\',\n											\'2019-08-10\',\n											\'93\',\n											\'4100\',\n											\'155 - LN x 80 @ 11.93\',\n											\'-954.4\')'),('2019-08-09 14:39:31','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26974\',\n										\'2019-08-10\',\n										\'93\',\n										\'1100\',\n										\'155\',\n										\'1040.3\')'),('2019-08-09 14:39:31','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26974\',\n											\'2019-08-10\',\n											\'93\',\n											\'2300\',\n											\'155\',\n											\'-85.9\')'),('2019-08-09 15:03:05','jhairud','UPDATE debtorsmaster SET\n					name=\'TAVEUNI PRISON\',\n					address1=\'Taveuni\',\n					address2=\'\',\n					address3=\'\',\n					address4=\'\',\n					address5=\'\',\n					address6=\'\',\n					clientsince=\'2019-08-09\',\n					holdreason=\'1\',\n					paymentterms=\'20\',\n					discount=\'0\',\n					discountcode=\'\',\n					pymtdiscount=\'0\',\n					creditlimit=\'100000\',\n					salestype = \'DE\',\n					invaddrbranch=\'0\',\n					taxref=\'\',\n					customerpoline=\'0\',\n					typeid=\'1\'\n				  WHERE debtorno = \'155\''),('2019-08-10 10:21:46','jhairud','UPDATE config SET confvalue = \'2019-08-10\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-13 09:41:48','jhairud','UPDATE config SET confvalue = \'2019-08-13\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-13 10:32: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								\'27475\',\n								\'TM074\',\n								\'P001\',\n								\'centerpoint\',\n								\'\',\n								\'2019-08-13 10:32\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 10:32: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					\'27475\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 10:32: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					\'27475\',\n					\'MBT\',\n					\'9.50\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 10:32:30','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26975\')\n			WHERE orderno= \'27475\''),('2019-08-13 10:32: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									\'26975\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-14\',\n									\'2019-08-13 10-32-30\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27475\',\n									\'566.2\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-13 10:32:30','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34058\',\n									\'1\',\n									\'33.858\')'),('2019-08-13 10:32:30','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27475\'\n							AND orderlineno = \'0\''),('2019-08-13 10:32:30','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-13 10:32: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														\'26975\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27475\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306143.65\',\n														\'\' )'),('2019-08-13 10:32:30','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56662\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 10:32:30','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'376.2\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-13 10:32:30','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26975\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-13 10:32:30','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27475\'\n							AND orderlineno = \'1\''),('2019-08-13 10:32:30','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-13 10:32: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 (\'MBT\',\n														10,\n														\'26975\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27475\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-7222.6\',\n														\'\' )'),('2019-08-13 10:32:30','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56663\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-13 10:32:30','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'190\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'MBT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-13 10:32:30','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26975\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 20 @ 9.5\',\n											\'-190\')'),('2019-08-13 10:32:30','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26975\',\n										\'2019-08-14\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'600.06\')'),('2019-08-13 10:32:30','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26975\',\n											\'2019-08-14\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-08-13 10:32:30','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000009947598300641403\n								WHERE counterindex = \'122069\''),('2019-08-13 10:33:56','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27476\',\n								\'TM074\',\n								\'P001\',\n								\'sport/c\',\n								\'\',\n								\'2019-08-13 10: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-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 10:33:56','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27476\',\n					\'BM500G\',\n					\'9.00\',\n					\'3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 10:34:02','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26976\')\n			WHERE orderno= \'27476\''),('2019-08-13 10:34: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									\'26976\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-14\',\n									\'2019-08-13 10-34-02\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27476\',\n									\'27\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-13 10:34:02','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34059\',\n									\'1\',\n									\'0\')'),('2019-08-13 10:34:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27476\'\n							AND orderlineno = \'0\''),('2019-08-13 10:34:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'BM500G\'\n						AND loccode = \'AN\''),('2019-08-13 10:34:02','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BM500G\',\n														10,\n														\'26976\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM074\',\n														\'P001\',\n														\'9\',\n														\'93\',\n														\'27476\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-71699.11\',\n														\'\' )'),('2019-08-13 10:34:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56664\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-13 10:34:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'27\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'3\',\n										\'0\',\n										\'BM500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BM500G\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-13 10:34:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26976\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM074 - BM500G x 3 @ 9\',\n											\'-27\')'),('2019-08-13 10:34:02','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26976\',\n										\'2019-08-14\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'27\')'),('2019-08-13 10:43: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								\'27477\',\n								\'TM013\',\n								\'41\',\n								\'KSPN004508\',\n								\'\',\n								\'2019-08-13 10:43\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 10:43: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					\'27477\',\n					\'LM\',\n					\'18.34\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 10:43:11','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27477\',\n					\'DB\',\n					\'14\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 10:43:17','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26977\')\n			WHERE orderno= \'27477\''),('2019-08-13 10:43:17','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26977\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-14\',\n									\'2019-08-13 10-43-17\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27477\',\n									\'646.8\',\n									\'58.21\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-13 10:43:17','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34060\',\n									\'1\',\n									\'58.212\')'),('2019-08-13 10:43:17','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27477\'\n							AND orderlineno = \'0\''),('2019-08-13 10:43:17','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-13 10:43:17','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LM\',\n														10,\n														\'26977\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM013\',\n														\'41\',\n														\'18.34\',\n														\'93\',\n														\'27477\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-32031.78\',\n														\'\' )'),('2019-08-13 10:43:17','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56665\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 10:43:17','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'366.8\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'20\',\n										\'0\',\n										\'LM\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LM\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-13 10:43:17','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26977\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM013 - LM x 20 @ 18.34\',\n											\'-366.8\')'),('2019-08-13 10:43:17','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27477\'\n							AND orderlineno = \'1\''),('2019-08-13 10:43:17','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'DB\'\n						AND loccode = \'AN\''),('2019-08-13 10:43:17','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'DB\',\n														10,\n														\'26977\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27477\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-440\',\n														\'\' )'),('2019-08-13 10:43:17','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56666\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 10:43:17','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'280\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'20\',\n										\'0\',\n										\'DB\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'DB\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-13 10:43:17','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26977\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM013 - DB x 20 @ 14\',\n											\'-280\')'),('2019-08-13 10:43:17','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26977\',\n										\'2019-08-14\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'705.01\')'),('2019-08-13 10:43:17','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26977\',\n											\'2019-08-14\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-58.21\')'),('2019-08-13 10:43:17','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000003552713678800501\n								WHERE counterindex = \'122075\''),('2019-08-13 10:53: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								\'27478\',\n								\'TM074\',\n								\'P001\',\n								\'HARBOUR CENTER\',\n								\'\',\n								\'2019-08-13 10:53\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 10:53: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					\'27478\',\n					\'CP\',\n					\'18.81\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 10:53: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					\'27478\',\n					\'MBT\',\n					\'9.5\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 10:53:31','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26978\')\n			WHERE orderno= \'27478\''),('2019-08-13 10:53: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									\'26978\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-14\',\n									\'2019-08-13 10-53-31\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27478\',\n									\'189.05\',\n									\'8.46\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-13 10:53:31','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34061\',\n									\'1\',\n									\'8.4645\')'),('2019-08-13 10:53:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27478\'\n							AND orderlineno = \'0\''),('2019-08-13 10:53:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-13 10:53: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														\'26978\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27478\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-306148.65\',\n														\'\' )'),('2019-08-13 10:53:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56667\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 10:53:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'94.05\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'5\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-13 10:53:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26978\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 5 @ 18.81\',\n											\'-94.05\')'),('2019-08-13 10:53:31','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27478\'\n							AND orderlineno = \'1\''),('2019-08-13 10:53:31','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-13 10:53: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 (\'MBT\',\n														10,\n														\'26978\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27478\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-7232.6\',\n														\'\' )'),('2019-08-13 10:53:31','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56668\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-13 10:53:31','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'95\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'10\',\n										\'0\',\n										\'MBT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-13 10:53:31','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26978\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 10 @ 9.5\',\n											\'-95\')'),('2019-08-13 10:53:31','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26978\',\n										\'2019-08-14\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'197.51\')'),('2019-08-13 10:53:31','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26978\',\n											\'2019-08-14\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-8.46\')'),('2019-08-13 10:53:31','zaabed','UPDATE gltrans SET amount = amount - -0.000000000000021316282072803006\n								WHERE counterindex = \'122079\''),('2019-08-13 11:54:55','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								\'27479\',\n								\'TM087\',\n								\'S051\',\n								\'12315\',\n								\'\',\n								\'2019-08-13 11:54\',\n								\'DE\',\n								\'10\',\n								\'SUVA MOTOR INN\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 11:54:55','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					\'27479\',\n					\'WAHOO\',\n					\'22\',\n					\'19.8\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 11:55:06','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26979\')\n			WHERE orderno= \'27479\''),('2019-08-13 11:55:06','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26979\',\n									10,\n									\'TM087\',\n									\'S051\',\n									\'2019-08-14\',\n									\'2019-08-13 11-55-06\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27479\',\n									\'435.6\',\n									\'39.2\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-13 11:55:06','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34062\',\n									\'1\',\n									\'39.204\')'),('2019-08-13 11:55:06','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 19.8,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27479\'\n							AND orderlineno = \'0\''),('2019-08-13 11:55:06','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 19.8\n						WHERE locstock.stockid = \'WAHOO\'\n						AND loccode = \'AN\''),('2019-08-13 11:55:06','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'WAHOO\',\n														10,\n														\'26979\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM087\',\n														\'S051\',\n														\'22\',\n														\'93\',\n														\'27479\',\n														\'-19.8\',\n														\'0\',\n														\'0.0000\',\n														\'-52282.5\',\n														\'\' )'),('2019-08-13 11:55:06','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56669\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 11:55:06','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'435.6\',\n										\'0\',\n										\'TM087\',\n										\'S051\',\n										\'19.8\',\n										\'0\',\n										\'WAHOO\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'WAHOO\'\n								AND custbranch.debtorno = \'TM087\'\n								AND custbranch.branchcode=\'S051\''),('2019-08-13 11:55:06','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26979\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM087 - WAHOO x 19.8 @ 22\',\n											\'-435.6\')'),('2019-08-13 11:55:06','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26979\',\n										\'2019-08-14\',\n										\'93\',\n										\'1100\',\n										\'TM087\',\n										\'474.8\')'),('2019-08-13 11:55:06','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26979\',\n											\'2019-08-14\',\n											\'93\',\n											\'2300\',\n											\'TM087\',\n											\'-39.2\')'),('2019-08-13 12:01: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								\'27480\',\n								\'TM013\',\n								\'41\',\n								\'00000325\',\n								\'\',\n								\'2019-08-13 12:01\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 12:01: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					\'27480\',\n					\'RDS\',\n					\'12\',\n					\'3.5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 12:01: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					\'27480\',\n					\'RS\',\n					\'12\',\n					\'5.6\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 12:01: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					\'27480\',\n					\'SF500G\',\n					\'16.95\',\n					\'3.2\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 12:01: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					\'27480\',\n					\'SS\',\n					\'17.240\',\n					\'1.65\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 12:01: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					\'27480\',\n					\'BTS\',\n					\'14\',\n					\'4.75\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 12:01:49','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26980\')\n			WHERE orderno= \'27480\''),('2019-08-13 12:01: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									\'26980\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-14\',\n									\'2019-08-13 12-01-49\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27480\',\n									\'258.39\',\n									\'23.25\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-13 12:01:49','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34063\',\n									\'1\',\n									\'23.25474\')'),('2019-08-13 12:01:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.5,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27480\'\n							AND orderlineno = \'0\''),('2019-08-13 12:01:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.5\n						WHERE locstock.stockid = \'RDS\'\n						AND loccode = \'AN\''),('2019-08-13 12:01: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 (\'RDS\',\n														10,\n														\'26980\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27480\',\n														\'-3.5\',\n														\'0\',\n														\'0.0000\',\n														\'-922.19\',\n														\'\' )'),('2019-08-13 12:01:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56670\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 12:01:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'42\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3.5\',\n										\'0\',\n										\'RDS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RDS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-13 12:01:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26980\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RDS x 3.5 @ 12\',\n											\'-42\')'),('2019-08-13 12:01:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5.6,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27480\'\n							AND orderlineno = \'1\''),('2019-08-13 12:01:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5.6\n						WHERE locstock.stockid = \'RS\'\n						AND loccode = \'AN\''),('2019-08-13 12:01: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 (\'RS\',\n														10,\n														\'26980\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27480\',\n														\'-5.6\',\n														\'0\',\n														\'0.0000\',\n														\'-19858.34\',\n														\'\' )'),('2019-08-13 12:01:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56671\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 12:01:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'67.2\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'5.6\',\n										\'0\',\n										\'RS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-13 12:01:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26980\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RS x 5.6 @ 12\',\n											\'-67.2\')'),('2019-08-13 12:01:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.2,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27480\'\n							AND orderlineno = \'2\''),('2019-08-13 12:01:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.2\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-13 12:01: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 (\'SF500G\',\n														10,\n														\'26980\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM013\',\n														\'41\',\n														\'16.95\',\n														\'93\',\n														\'27480\',\n														\'-3.2\',\n														\'0\',\n														\'0.0000\',\n														\'-9578.481\',\n														\'\' )'),('2019-08-13 12:01:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56672\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 12:01:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'54.24\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3.2\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-13 12:01:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26980\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SF500G x 3.2 @ 16.95\',\n											\'-54.24\')'),('2019-08-13 12:01:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 1.65,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27480\'\n							AND orderlineno = \'4\''),('2019-08-13 12:01:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 1.65\n						WHERE locstock.stockid = \'SS\'\n						AND loccode = \'AN\''),('2019-08-13 12:01: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 (\'SS\',\n														10,\n														\'26980\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM013\',\n														\'41\',\n														\'17.24\',\n														\'93\',\n														\'27480\',\n														\'-1.65\',\n														\'0\',\n														\'0.0000\',\n														\'-6702.15\',\n														\'\' )'),('2019-08-13 12:01:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56673\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 12:01:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'28.45\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'1.65\',\n										\'0\',\n										\'SS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-13 12:01:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26980\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SS x 1.65 @ 17.24\',\n											\'-28.45\')'),('2019-08-13 12:01:49','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.75,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27480\'\n							AND orderlineno = \'5\''),('2019-08-13 12:01:49','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4.75\n						WHERE locstock.stockid = \'BTS\'\n						AND loccode = \'AN\''),('2019-08-13 12:01: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 (\'BTS\',\n														10,\n														\'26980\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27480\',\n														\'-4.75\',\n														\'0\',\n														\'0.0000\',\n														\'-5494.46\',\n														\'\' )'),('2019-08-13 12:01:49','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56674\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 12:01:49','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'66.5\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'4.75\',\n										\'0\',\n										\'BTS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BTS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-13 12:01:49','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26980\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BTS x 4.75 @ 14\',\n											\'-66.5\')'),('2019-08-13 12:01:49','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26980\',\n										\'2019-08-14\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'281.64\')'),('2019-08-13 12:01:49','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26980\',\n											\'2019-08-14\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-23.25\')'),('2019-08-13 12:15: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								\'27481\',\n								\'TM013\',\n								\'41\',\n								\'2920820\',\n								\'\',\n								\'2019-08-13 12:15\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 12:15: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					\'27481\',\n					\'SF500G\',\n					\'16.95\',\n					\'4.8\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 12:15: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					\'1\',\n					\'27481\',\n					\'SS\',\n					\'17.24\',\n					\'2.1\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 12:15: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					\'2\',\n					\'27481\',\n					\'RS\',\n					\'12\',\n					\'2.7\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 12:15: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					\'3\',\n					\'27481\',\n					\'BTS\',\n					\'14\',\n					\'3.75\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 12:15:50','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26981\')\n			WHERE orderno= \'27481\''),('2019-08-13 12:15:50','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									\'26981\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-14\',\n									\'2019-08-13 12-15-50\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27481\',\n									\'202.46\',\n									\'18.22\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-13 12:15:50','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34064\',\n									\'1\',\n									\'18.22176\')'),('2019-08-13 12:15:50','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.8,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27481\'\n							AND orderlineno = \'0\''),('2019-08-13 12:15:50','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4.8\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-13 12:15:50','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														\'26981\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM013\',\n														\'41\',\n														\'16.95\',\n														\'93\',\n														\'27481\',\n														\'-4.8\',\n														\'0\',\n														\'0.0000\',\n														\'-9583.281\',\n														\'\' )'),('2019-08-13 12:15:50','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56675\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 12:15:50','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'81.36\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'4.8\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-13 12:15:50','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26981\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SF500G x 4.8 @ 16.95\',\n											\'-81.36\')'),('2019-08-13 12:15:50','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2.1,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27481\'\n							AND orderlineno = \'1\''),('2019-08-13 12:15:50','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2.1\n						WHERE locstock.stockid = \'SS\'\n						AND loccode = \'AN\''),('2019-08-13 12:15:50','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'SS\',\n														10,\n														\'26981\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM013\',\n														\'41\',\n														\'17.24\',\n														\'93\',\n														\'27481\',\n														\'-2.1\',\n														\'0\',\n														\'0.0000\',\n														\'-6704.25\',\n														\'\' )'),('2019-08-13 12:15:50','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56676\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 12:15:50','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'36.2\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'2.1\',\n										\'0\',\n										\'SS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-13 12:15:50','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26981\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SS x 2.1 @ 17.24\',\n											\'-36.2\')'),('2019-08-13 12:15:50','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2.7,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27481\'\n							AND orderlineno = \'2\''),('2019-08-13 12:15:50','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2.7\n						WHERE locstock.stockid = \'RS\'\n						AND loccode = \'AN\''),('2019-08-13 12:15:50','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RS\',\n														10,\n														\'26981\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27481\',\n														\'-2.7\',\n														\'0\',\n														\'0.0000\',\n														\'-19861.04\',\n														\'\' )'),('2019-08-13 12:15:50','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56677\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 12:15:50','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'32.4\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'2.7\',\n										\'0\',\n										\'RS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-13 12:15:50','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26981\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RS x 2.7 @ 12\',\n											\'-32.4\')'),('2019-08-13 12:15:50','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.75,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27481\'\n							AND orderlineno = \'3\''),('2019-08-13 12:15:50','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.75\n						WHERE locstock.stockid = \'BTS\'\n						AND loccode = \'AN\''),('2019-08-13 12:15:50','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BTS\',\n														10,\n														\'26981\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27481\',\n														\'-3.75\',\n														\'0\',\n														\'0.0000\',\n														\'-5498.21\',\n														\'\' )'),('2019-08-13 12:15:50','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56678\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 12:15:50','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'52.5\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3.75\',\n										\'0\',\n										\'BTS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BTS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-13 12:15:50','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26981\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BTS x 3.75 @ 14\',\n											\'-52.5\')'),('2019-08-13 12:15:50','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26981\',\n										\'2019-08-14\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'220.68\')'),('2019-08-13 12:15:50','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26981\',\n											\'2019-08-14\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-18.22\')'),('2019-08-13 12:32:29','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27482\',\n								\'TM074\',\n								\'P001\',\n								\'sport/c\',\n								\'\',\n								\'2019-08-13 12:32\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 12:32:29','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27482\',\n					\'LL\',\n					\'25\',\n					\'6\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 12:32:36','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26982\')\n			WHERE orderno= \'27482\''),('2019-08-13 12:32:36','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26982\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-14\',\n									\'2019-08-13 12-32-36\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27482\',\n									\'150\',\n									\'13.5\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-13 12:32:36','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34065\',\n									\'1\',\n									\'13.5\')'),('2019-08-13 12:32:36','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27482\'\n							AND orderlineno = \'0\''),('2019-08-13 12:32:36','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 6\n						WHERE locstock.stockid = \'LL\'\n						AND loccode = \'AN\''),('2019-08-13 12:32:36','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LL\',\n														10,\n														\'26982\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM074\',\n														\'P001\',\n														\'25\',\n														\'93\',\n														\'27482\',\n														\'-6\',\n														\'0\',\n														\'0.0000\',\n														\'-51706.99\',\n														\'\' )'),('2019-08-13 12:32:36','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56679\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 12:32:36','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'150\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'6\',\n										\'0\',\n										\'LL\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LL\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-13 12:32:36','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26982\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM074 - LL x 6 @ 25\',\n											\'-150\')'),('2019-08-13 12:32:36','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26982\',\n										\'2019-08-14\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'163.5\')'),('2019-08-13 12:32:36','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26982\',\n											\'2019-08-14\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-13.5\')'),('2019-08-13 13:15:43','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27483\',\n								\'94\',\n								\'99\',\n								\'po198306\',\n								\'\',\n								\'2019-08-13 13:15\',\n								\'DE\',\n								\'1\',\n								\'University of The South Pacific\',\n								\'Laucala Campus\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 13:15:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27483\',\n					\'RE\',\n					\'28.00\',\n					\'2.6\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 13:15:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27483\',\n					\'LM\',\n					\'16.00\',\n					\'2\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 13:15:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27483\',\n					\'CHICKEN\',\n					\'5.05\',\n					\'3\',\n					\'0\',\n					\'liver\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 13:15:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'3\',\n					\'27483\',\n					\'WC\',\n					\'12.4\',\n					\'5\',\n					\'0\',\n					\'1.2\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 13:15:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'4\',\n					\'27483\',\n					\'LCPS\',\n					\'15.14\',\n					\'2\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 13:15:43','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'5\',\n					\'27483\',\n					\'CHICKEN\',\n					\'4.13\',\n					\'4\',\n					\'0\',\n					\'feet\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 13:15:57','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26983\')\n			WHERE orderno= \'27483\''),('2019-08-13 13:15:57','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26983\',\n									10,\n									\'94\',\n									\'99\',\n									\'2019-08-14\',\n									\'2019-08-13 13-15-57\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27483\',\n									\'228.75\',\n									\'20.59\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-13 13:15:57','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34066\',\n									\'1\',\n									\'20.5875\')'),('2019-08-13 13:15:57','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2.6,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27483\'\n							AND orderlineno = \'0\''),('2019-08-13 13:15:57','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2.6\n						WHERE locstock.stockid = \'RE\'\n						AND loccode = \'AN\''),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RE\',\n														10,\n														\'26983\',\n														\'AN\',\n														\'2019-08-14\',\n														\'94\',\n														\'99\',\n														\'28\',\n														\'93\',\n														\'27483\',\n														\'-2.6\',\n														\'0\',\n														\'0.0000\',\n														\'-14307.36\',\n														\'\' )'),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56680\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 13:15:57','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'72.8\',\n										\'0\',\n										\'94\',\n										\'99\',\n										\'2.6\',\n										\'0\',\n										\'RE\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RE\'\n								AND custbranch.debtorno = \'94\'\n								AND custbranch.branchcode=\'99\''),('2019-08-13 13:15:57','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26983\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'94 - RE x 2.6 @ 28\',\n											\'-72.8\')'),('2019-08-13 13:15:57','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27483\'\n							AND orderlineno = \'1\''),('2019-08-13 13:15:57','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LM\',\n														10,\n														\'26983\',\n														\'AN\',\n														\'2019-08-14\',\n														\'94\',\n														\'99\',\n														\'16\',\n														\'93\',\n														\'27483\',\n														\'-2\',\n														\'0\',\n														\'0.0000\',\n														\'-32033.78\',\n														\'\' )'),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56681\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 13:15:57','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'32\',\n										\'0\',\n										\'94\',\n										\'99\',\n										\'2\',\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 = \'94\'\n								AND custbranch.branchcode=\'99\''),('2019-08-13 13:15:57','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26983\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'94 - LM x 2 @ 16\',\n											\'-32\')'),('2019-08-13 13:15:57','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27483\'\n							AND orderlineno = \'2\''),('2019-08-13 13:15:57','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'26983\',\n														\'AN\',\n														\'2019-08-14\',\n														\'94\',\n														\'99\',\n														\'5.05\',\n														\'93\',\n														\'27483\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-87076.17\',\n														\'liver\' )'),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56682\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 13:15:57','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'15.15\',\n										\'0\',\n										\'94\',\n										\'99\',\n										\'3\',\n										\'0\',\n										\'CHICKEN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHICKEN\'\n								AND custbranch.debtorno = \'94\'\n								AND custbranch.branchcode=\'99\''),('2019-08-13 13:15:57','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26983\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'94 - CHICKEN x 3 @ 5.05\',\n											\'-15.15\')'),('2019-08-13 13:15:57','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27483\'\n							AND orderlineno = \'3\''),('2019-08-13 13:15:57','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'WC\'\n						AND loccode = \'AN\''),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'WC\',\n														10,\n														\'26983\',\n														\'AN\',\n														\'2019-08-14\',\n														\'94\',\n														\'99\',\n														\'12.4\',\n														\'93\',\n														\'27483\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-5931\',\n														\'1.2\' )'),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56683\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 13:15:57','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'62\',\n										\'0\',\n										\'94\',\n										\'99\',\n										\'5\',\n										\'0\',\n										\'WC\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'WC\'\n								AND custbranch.debtorno = \'94\'\n								AND custbranch.branchcode=\'99\''),('2019-08-13 13:15:57','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26983\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'94 - WC x 5 @ 12.4\',\n											\'-62\')'),('2019-08-13 13:15:57','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27483\'\n							AND orderlineno = \'4\''),('2019-08-13 13:15:57','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2\n						WHERE locstock.stockid = \'LCPS\'\n						AND loccode = \'AN\''),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LCPS\',\n														10,\n														\'26983\',\n														\'AN\',\n														\'2019-08-14\',\n														\'94\',\n														\'99\',\n														\'15.14\',\n														\'93\',\n														\'27483\',\n														\'-2\',\n														\'0\',\n														\'0.0000\',\n														\'-45923.89\',\n														\'\' )'),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56684\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 13:15:57','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'30.28\',\n										\'0\',\n										\'94\',\n										\'99\',\n										\'2\',\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 = \'94\'\n								AND custbranch.branchcode=\'99\''),('2019-08-13 13:15:57','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26983\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'94 - LCPS x 2 @ 15.14\',\n											\'-30.28\')'),('2019-08-13 13:15:57','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27483\'\n							AND orderlineno = \'5\''),('2019-08-13 13:15:57','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'26983\',\n														\'AN\',\n														\'2019-08-14\',\n														\'94\',\n														\'99\',\n														\'4.13\',\n														\'93\',\n														\'27483\',\n														\'-4\',\n														\'0\',\n														\'0.0000\',\n														\'-87080.17\',\n														\'feet\' )'),('2019-08-13 13:15:57','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56685\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 13:15:57','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'16.52\',\n										\'0\',\n										\'94\',\n										\'99\',\n										\'4\',\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 = \'94\'\n								AND custbranch.branchcode=\'99\''),('2019-08-13 13:15:57','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26983\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'94 - CHICKEN x 4 @ 4.13\',\n											\'-16.52\')'),('2019-08-13 13:15:57','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26983\',\n										\'2019-08-14\',\n										\'93\',\n										\'1100\',\n										\'94\',\n										\'249.34\')'),('2019-08-13 13:15:57','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26983\',\n											\'2019-08-14\',\n											\'93\',\n											\'2300\',\n											\'94\',\n											\'-20.59\')'),('2019-08-13 13:19:27','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27484\',\n								\'TM074\',\n								\'P001\',\n								\'HARBOUR CENTER\',\n								\'\',\n								\'2019-08-13 13:19\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 13:19:27','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27484\',\n					\'MBT\',\n					\'9.50\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 13:19:27','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27484\',\n					\'CP\',\n					\'18.81\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 14:06:49','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27485\',\n								\'TM074\',\n								\'P001\',\n								\'HARBOUR CENTER\',\n								\'\',\n								\'2019-08-13 14:06\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 14:06:49','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27485\',\n					\'FF\',\n					\'17.00\',\n					\'30.7\',\n					\'0\',\n					\'23/7.7\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 14:07:12','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26984\')\n			WHERE orderno= \'27485\''),('2019-08-13 14:07:12','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26984\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-14\',\n									\'2019-08-13 14-07-12\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27485\',\n									\'521.9\',\n									\'46.97\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-13 14:07:12','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34067\',\n									\'1\',\n									\'46.971\')'),('2019-08-13 14:07:12','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30.7,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27485\'\n							AND orderlineno = \'0\''),('2019-08-13 14:07:12','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 30.7\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-13 14:07:12','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FF\',\n														10,\n														\'26984\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM074\',\n														\'P001\',\n														\'17\',\n														\'93\',\n														\'27485\',\n														\'-30.7\',\n														\'0\',\n														\'0.0000\',\n														\'-21058.07\',\n														\'23/7.7\' )'),('2019-08-13 14:07:12','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56686\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 14:07:12','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'521.9\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'30.7\',\n										\'0\',\n										\'FF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FF\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-13 14:07:12','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26984\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM074 - FF x 30.7 @ 17\',\n											\'-521.9\')'),('2019-08-13 14:07:12','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26984\',\n										\'2019-08-14\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'568.87\')'),('2019-08-13 14:07:12','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26984\',\n											\'2019-08-14\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-46.97\')'),('2019-08-13 15:23:08','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27486\',\n								\'TM020\',\n								\'R010\',\n								\'19102-031746CADET\',\n								\'\',\n								\'2019-08-13 15:23\',\n								\'DE\',\n								\'10\',\n								\'RFMF (FIJI MILITARY FORCES)\',\n								\'SUVA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'2019-08-14\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-13 15:23:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27486\',\n					\'C001\',\n					\'8.26\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 15:23:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27486\',\n					\'CHICKEN\',\n					\'8.25\',\n					\'80\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 15:23:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27486\',\n					\'CHS\',\n					\'8.25\',\n					\'60\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 15:23:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'3\',\n					\'27486\',\n					\'ST\',\n					\'9.13\',\n					\'40\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 15:23:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'4\',\n					\'27486\',\n					\'G1\',\n					\'8.72\',\n					\'60\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-13\'\n				)'),('2019-08-13 15:23:23','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26985\')\n			WHERE orderno= \'27486\''),('2019-08-13 15:23:23','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26985\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-08-14\',\n									\'2019-08-13 15-23-23\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27486\',\n									\'2373.8\',\n									\'213.64\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-13 15:23:23','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34068\',\n									\'1\',\n									\'213.642\')'),('2019-08-13 15:23:23','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27486\'\n							AND orderlineno = \'0\''),('2019-08-13 15:23:23','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'C001\'\n						AND loccode = \'AN\''),('2019-08-13 15:23:23','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'C001\',\n														10,\n														\'26985\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM020\',\n														\'R010\',\n														\'8.26\',\n														\'93\',\n														\'27486\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-4335.4\',\n														\'\' )'),('2019-08-13 15:23:23','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56687\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 15:23:23','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'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-08-13 15:23:23','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26985\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM020 - C001 x 40 @ 8.26\',\n											\'-330.4\')'),('2019-08-13 15:23:23','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 80,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27486\'\n							AND orderlineno = \'1\''),('2019-08-13 15:23:23','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 80\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-13 15:23:23','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'26985\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'93\',\n														\'27486\',\n														\'-80\',\n														\'0\',\n														\'0.0000\',\n														\'-87160.17\',\n														\'\' )'),('2019-08-13 15:23:23','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56688\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 15:23:23','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'660\',\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-08-13 15:23:23','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26985\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM020 - CHICKEN x 80 @ 8.25\',\n											\'-660\')'),('2019-08-13 15:23:23','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 60,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27486\'\n							AND orderlineno = \'2\''),('2019-08-13 15:23:23','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 60\n						WHERE locstock.stockid = \'CHS\'\n						AND loccode = \'AN\''),('2019-08-13 15:23:23','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHS\',\n														10,\n														\'26985\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM020\',\n														\'R010\',\n														\'8.25\',\n														\'93\',\n														\'27486\',\n														\'-60\',\n														\'0\',\n														\'0.0000\',\n														\'-25820\',\n														\'\' )'),('2019-08-13 15:23:23','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56689\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 15:23:23','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'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-08-13 15:23:23','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26985\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM020 - CHS x 60 @ 8.25\',\n											\'-495\')'),('2019-08-13 15:23:23','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 40,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27486\'\n							AND orderlineno = \'3\''),('2019-08-13 15:23:23','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 40\n						WHERE locstock.stockid = \'ST\'\n						AND loccode = \'AN\''),('2019-08-13 15:23:23','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'ST\',\n														10,\n														\'26985\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM020\',\n														\'R010\',\n														\'9.13\',\n														\'93\',\n														\'27486\',\n														\'-40\',\n														\'0\',\n														\'0.0000\',\n														\'-5492\',\n														\'\' )'),('2019-08-13 15:23:23','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56690\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 15:23:23','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'365.2\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'40\',\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-08-13 15:23:23','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26985\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM020 - ST x 40 @ 9.13\',\n											\'-365.2\')'),('2019-08-13 15:23:23','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 60,\n								actualdispatchdate = \'2019-08-14\',\n								completed=1\n							WHERE orderno = \'27486\'\n							AND orderlineno = \'4\''),('2019-08-13 15:23:23','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 60\n						WHERE locstock.stockid = \'G1\'\n						AND loccode = \'AN\''),('2019-08-13 15:23:23','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'G1\',\n														10,\n														\'26985\',\n														\'AN\',\n														\'2019-08-14\',\n														\'TM020\',\n														\'R010\',\n														\'8.72\',\n														\'93\',\n														\'27486\',\n														\'-60\',\n														\'0\',\n														\'0.0000\',\n														\'-29309.4\',\n														\'\' )'),('2019-08-13 15:23:23','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56691\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-13 15:23:23','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'523.2\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'60\',\n										\'0\',\n										\'G1\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'G1\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-13 15:23:23','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26985\',\n											\'2019-08-14\',\n											\'93\',\n											\'4100\',\n											\'TM020 - G1 x 60 @ 8.72\',\n											\'-523.2\')'),('2019-08-13 15:23:23','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26985\',\n										\'2019-08-14\',\n										\'93\',\n										\'1100\',\n										\'TM020\',\n										\'2587.44\')'),('2019-08-13 15:23:23','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26985\',\n											\'2019-08-14\',\n											\'93\',\n											\'2300\',\n											\'TM020\',\n											\'-213.64\')'),('2019-08-13 15:23:23','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000011368683772161603\n								WHERE counterindex = \'122113\''),('2019-08-14 09:13:23','zaabed','UPDATE config SET confvalue = \'2019-08-14\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-14 09:39:52','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								\'27487\',\n								\'133\',\n								\'133\',\n								\'\',\n								\'\',\n								\'2019-08-14 09:39\',\n								\'DE\',\n								\'1\',\n								\'YUM YUM LTD \',\n								\'Bure 3 Kundan Complex, 198-200 Prncs Rd \',\n								\'Tamavua\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'3380500\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-14 09:39:52','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					\'27487\',\n					\'FISH\',\n					\'12.49\',\n					\'4.27\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 09:39:59','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26986\')\n			WHERE orderno= \'27487\''),('2019-08-14 09:39: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									\'26986\',\n									10,\n									\'133\',\n									\'133\',\n									\'2019-08-15\',\n									\'2019-08-14 09-39-59\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27487\',\n									\'53.33\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-14 09:39:59','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34069\',\n									\'1\',\n									\'0\')'),('2019-08-14 09:39:59','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.27,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27487\'\n							AND orderlineno = \'0\''),('2019-08-14 09:39:59','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4.27\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-14 09:39: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 (\'FISH\',\n														10,\n														\'26986\',\n														\'AN\',\n														\'2019-08-15\',\n														\'133\',\n														\'133\',\n														\'12.49\',\n														\'93\',\n														\'27487\',\n														\'-4.27\',\n														\'0\',\n														\'0.0000\',\n														\'-45212.5401\',\n														\'marlin\' )'),('2019-08-14 09:39:59','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56692\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-14 09:39:59','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'53.33\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'4.27\',\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-08-14 09:39:59','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26986\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'133 - FISH x 4.27 @ 12.49\',\n											\'-53.33\')'),('2019-08-14 09:39:59','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26986\',\n										\'2019-08-15\',\n										\'93\',\n										\'1100\',\n										\'133\',\n										\'53.33\')'),('2019-08-14 12:51: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								\'27488\',\n								\'N015\',\n								\'N015\',\n								\'84501-005229\',\n								\'\',\n								\'2019-08-14 12:51\',\n								\'DE\',\n								\'1\',\n								\'NADI HOSPITAL\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-14 12:51: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					\'27488\',\n					\'FISH\',\n					\'8.72\',\n					\'60\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 12:51:27','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26987\')\n			WHERE orderno= \'27488\''),('2019-08-14 12:51:27','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26987\',\n									10,\n									\'N015\',\n									\'N015\',\n									\'2019-08-15\',\n									\'2019-08-14 12-51-27\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27488\',\n									\'523.2\',\n									\'47.09\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-14 12:51:27','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34070\',\n									\'1\',\n									\'47.088\')'),('2019-08-14 12:51:27','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 60,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27488\'\n							AND orderlineno = \'0\''),('2019-08-14 12:51:27','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 60\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-14 12:51:27','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FISH\',\n														10,\n														\'26987\',\n														\'AN\',\n														\'2019-08-15\',\n														\'N015\',\n														\'N015\',\n														\'8.72\',\n														\'93\',\n														\'27488\',\n														\'-60\',\n														\'0\',\n														\'0.0000\',\n														\'-45272.5401\',\n														\'\' )'),('2019-08-14 12:51:27','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56693\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 12:51:27','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'523.2\',\n										\'0\',\n										\'N015\',\n										\'N015\',\n										\'60\',\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 = \'N015\'\n								AND custbranch.branchcode=\'N015\''),('2019-08-14 12:51:27','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26987\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'N015 - FISH x 60 @ 8.72\',\n											\'-523.2\')'),('2019-08-14 12:51:27','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26987\',\n										\'2019-08-15\',\n										\'93\',\n										\'1100\',\n										\'N015\',\n										\'570.29\')'),('2019-08-14 12:51:27','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26987\',\n											\'2019-08-15\',\n											\'93\',\n											\'2300\',\n											\'N015\',\n											\'-47.09\')'),('2019-08-14 12:51:27','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000008526512829121202\n								WHERE counterindex = \'122122\''),('2019-08-14 12:53:48','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27489\',\n								\'98\',\n								\'98\',\n								\'\',\n								\'\',\n								\'2019-08-14 12:53\',\n								\'DE\',\n								\'1\',\n								\'WEST MEAT\',\n								\'LAUTOKA\',\n								\'\',\n								\'CITY\',\n								\'\',\n								\'\',\n								\'Fiji\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-14 12:53:48','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27489\',\n					\'LN2\',\n					\'12.39\',\n					\'187.9\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 12:53:55','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26988\')\n			WHERE orderno= \'27489\''),('2019-08-14 12:53:55','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26988\',\n									10,\n									\'98\',\n									\'98\',\n									\'2019-08-15\',\n									\'2019-08-14 12-53-55\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27489\',\n									\'2328.08\',\n									\'209.53\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-14 12:53:55','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34071\',\n									\'1\',\n									\'209.52729\')'),('2019-08-14 12:53:55','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 187.9,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27489\'\n							AND orderlineno = \'0\''),('2019-08-14 12:53:55','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 187.9\n						WHERE locstock.stockid = \'LN2\'\n						AND loccode = \'AN\''),('2019-08-14 12:53: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 (\'LN2\',\n														10,\n														\'26988\',\n														\'AN\',\n														\'2019-08-15\',\n														\'98\',\n														\'98\',\n														\'12.39\',\n														\'93\',\n														\'27489\',\n														\'-187.9\',\n														\'0\',\n														\'0.0000\',\n														\'-4295.51\',\n														\'\' )'),('2019-08-14 12:53:55','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56694\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 12:53:55','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'2328.08\',\n										\'0\',\n										\'98\',\n										\'98\',\n										\'187.9\',\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 = \'98\'\n								AND custbranch.branchcode=\'98\''),('2019-08-14 12:53:55','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26988\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'98 - LN2 x 187.9 @ 12.39\',\n											\'-2328.08\')'),('2019-08-14 12:53:55','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26988\',\n										\'2019-08-15\',\n										\'93\',\n										\'1100\',\n										\'98\',\n										\'2537.61\')'),('2019-08-14 12:53:55','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26988\',\n											\'2019-08-15\',\n											\'93\',\n											\'2300\',\n											\'98\',\n											\'-209.53\')'),('2019-08-14 12:55:08','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27490\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-08-14 12:55\',\n								\'DE\',\n								\'10\',\n								\'CURRY HOUSE\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-14 12:55:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27490\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 12:55:08','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27490\',\n					\'LM\',\n					\'17.43\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 12:55:16','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26989\')\n			WHERE orderno= \'27490\''),('2019-08-14 12:55:16','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									\'26989\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-15\',\n									\'2019-08-14 12-55-16\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27490\',\n									\'463.35\',\n									\'41.7\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-14 12:55:16','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34072\',\n									\'1\',\n									\'41.7015\')'),('2019-08-14 12:55:16','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27490\'\n							AND orderlineno = \'0\''),('2019-08-14 12:55:16','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-14 12:55:16','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														\'26989\',\n														\'AN\',\n														\'2019-08-15\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'93\',\n														\'27490\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306168.65\',\n														\'\' )'),('2019-08-14 12:55:16','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56695\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 12:55:16','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'376.2\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-14 12:55:16','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26989\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'TM044 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-14 12:55:16','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27490\'\n							AND orderlineno = \'1\''),('2019-08-14 12:55:16','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-14 12:55:16','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														\'26989\',\n														\'AN\',\n														\'2019-08-15\',\n														\'TM044\',\n														\'C008\',\n														\'17.43\',\n														\'93\',\n														\'27490\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-32038.78\',\n														\'\' )'),('2019-08-14 12:55:16','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56696\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 12:55:16','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'87.15\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'5\',\n										\'0\',\n										\'LM\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LM\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-14 12:55:16','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26989\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'TM044 - LM x 5 @ 17.43\',\n											\'-87.15\')'),('2019-08-14 12:55:16','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26989\',\n										\'2019-08-15\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'505.05\')'),('2019-08-14 12:55:16','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26989\',\n											\'2019-08-15\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-41.7\')'),('2019-08-14 12:57: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								\'27491\',\n								\'TM074\',\n								\'P001\',\n								\'sport/c\',\n								\'\',\n								\'2019-08-14 12:57\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-14 12:57: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					\'27491\',\n					\'CP\',\n					\'18.81\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 12:57: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					\'27491\',\n					\'MBT\',\n					\'9.50\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 12:57:14','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26990\')\n			WHERE orderno= \'27491\''),('2019-08-14 12:57:14','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26990\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-15\',\n									\'2019-08-14 12-57-14\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27491\',\n									\'472.15\',\n									\'25.39\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-14 12:57:14','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34073\',\n									\'1\',\n									\'25.3935\')'),('2019-08-14 12:57:14','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27491\'\n							AND orderlineno = \'0\''),('2019-08-14 12:57:14','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-14 12:57:14','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26990\',\n														\'AN\',\n														\'2019-08-15\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27491\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-306183.65\',\n														\'\' )'),('2019-08-14 12:57:14','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56697\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 12:57:14','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'282.15\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'15\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-14 12:57:14','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26990\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 15 @ 18.81\',\n											\'-282.15\')'),('2019-08-14 12:57:14','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27491\'\n							AND orderlineno = \'1\''),('2019-08-14 12:57:14','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-14 12:57:14','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'MBT\',\n														10,\n														\'26990\',\n														\'AN\',\n														\'2019-08-15\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27491\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-7252.6\',\n														\'\' )'),('2019-08-14 12:57:14','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56698\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-14 12:57:14','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'190\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'MBT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-14 12:57:14','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26990\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 20 @ 9.5\',\n											\'-190\')'),('2019-08-14 12:57:14','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26990\',\n										\'2019-08-15\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'497.54\')'),('2019-08-14 12:57:14','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26990\',\n											\'2019-08-15\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-25.39\')'),('2019-08-14 12:57:14','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000004263256414560601\n								WHERE counterindex = \'122132\''),('2019-08-14 13:00: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								\'27492\',\n								\'N007\',\n								\'N007\',\n								\'018995\',\n								\'\',\n								\'2019-08-14 13:00\',\n								\'DE\',\n								\'1\',\n								\'NASINU SECONDARY SCHOOL\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-14 13:00: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					\'27492\',\n					\'CHICKEN\',\n					\'13.76\',\n					\'18.6\',\n					\'0\',\n					\'boneless\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 13:01:00','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26991\')\n			WHERE orderno= \'27492\''),('2019-08-14 13:01: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									\'26991\',\n									10,\n									\'N007\',\n									\'N007\',\n									\'2019-08-15\',\n									\'2019-08-14 13-01-00\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27492\',\n									\'255.94\',\n									\'23.03\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-14 13:01:00','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34074\',\n									\'1\',\n									\'23.03424\')'),('2019-08-14 13:01:00','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 18.6,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27492\'\n							AND orderlineno = \'0\''),('2019-08-14 13:01:00','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 18.6\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-14 13:01: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														\'26991\',\n														\'AN\',\n														\'2019-08-15\',\n														\'N007\',\n														\'N007\',\n														\'13.76\',\n														\'93\',\n														\'27492\',\n														\'-18.6\',\n														\'0\',\n														\'0.0000\',\n														\'-87178.77\',\n														\'boneless\' )'),('2019-08-14 13:01:00','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56699\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 13:01:00','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'255.94\',\n										\'0\',\n										\'N007\',\n										\'N007\',\n										\'18.6\',\n										\'0\',\n										\'CHICKEN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHICKEN\'\n								AND custbranch.debtorno = \'N007\'\n								AND custbranch.branchcode=\'N007\''),('2019-08-14 13:01:00','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26991\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'N007 - CHICKEN x 18.6 @ 13.76\',\n											\'-255.94\')'),('2019-08-14 13:01:00','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26991\',\n										\'2019-08-15\',\n										\'93\',\n										\'1100\',\n										\'N007\',\n										\'278.97\')'),('2019-08-14 13:01:00','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26991\',\n											\'2019-08-15\',\n											\'93\',\n											\'2300\',\n											\'N007\',\n											\'-23.03\')'),('2019-08-14 13:01:00','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000002842170943040401\n								WHERE counterindex = \'122136\''),('2019-08-14 13:02: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								\'27493\',\n								\'N007\',\n								\'N007\',\n								\'018992\',\n								\'\',\n								\'2019-08-14 13:02\',\n								\'DE\',\n								\'1\',\n								\'NASINU SECONDARY SCHOOL\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-14 13:02: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					\'27493\',\n					\'CHICKEN\',\n					\'13.76\',\n					\'6\',\n					\'0\',\n					\'boneless\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 13:02:55','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26992\')\n			WHERE orderno= \'27493\''),('2019-08-14 13:02:55','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26992\',\n									10,\n									\'N007\',\n									\'N007\',\n									\'2019-08-15\',\n									\'2019-08-14 13-02-55\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27493\',\n									\'82.56\',\n									\'7.43\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-14 13:02:55','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34075\',\n									\'1\',\n									\'7.4304\')'),('2019-08-14 13:02:55','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27493\'\n							AND orderlineno = \'0\''),('2019-08-14 13:02:55','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 6\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-14 13:02: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 (\'CHICKEN\',\n														10,\n														\'26992\',\n														\'AN\',\n														\'2019-08-15\',\n														\'N007\',\n														\'N007\',\n														\'13.76\',\n														\'93\',\n														\'27493\',\n														\'-6\',\n														\'0\',\n														\'0.0000\',\n														\'-87184.77\',\n														\'boneless\' )'),('2019-08-14 13:02:55','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56700\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 13:02:55','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'82.56\',\n										\'0\',\n										\'N007\',\n										\'N007\',\n										\'6\',\n										\'0\',\n										\'CHICKEN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHICKEN\'\n								AND custbranch.debtorno = \'N007\'\n								AND custbranch.branchcode=\'N007\''),('2019-08-14 13:02:55','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26992\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'N007 - CHICKEN x 6 @ 13.76\',\n											\'-82.56\')'),('2019-08-14 13:02:55','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26992\',\n										\'2019-08-15\',\n										\'93\',\n										\'1100\',\n										\'N007\',\n										\'89.99\')'),('2019-08-14 13:02:55','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26992\',\n											\'2019-08-15\',\n											\'93\',\n											\'2300\',\n											\'N007\',\n											\'-7.43\')'),('2019-08-14 13:08:52','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								\'27494\',\n								\'TM057\',\n								\'I002\',\n								\'00024292\',\n								\'\',\n								\'2019-08-14 13:08\',\n								\'DE\',\n								\'10\',\n								\'INTERNATIONAL SCHOOL SUVA\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-14 13:08:52','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					\'27494\',\n					\'BN\',\n					\'17.890\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 13:08:52','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					\'27494\',\n					\'CP\',\n					\'20.64\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 13:08:52','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					\'27494\',\n					\'FF\',\n					\'16.97\',\n					\'10.35\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 13:09:02','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26993\')\n			WHERE orderno= \'27494\''),('2019-08-14 13:09: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									\'26993\',\n									10,\n									\'TM057\',\n									\'I002\',\n									\'2019-08-15\',\n									\'2019-08-14 13-09-02\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27494\',\n									\'664.14\',\n									\'59.77\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-14 13:09:02','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34076\',\n									\'1\',\n									\'59.772555\')'),('2019-08-14 13:09:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27494\'\n							AND orderlineno = \'0\''),('2019-08-14 13:09:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'BN\'\n						AND loccode = \'AN\''),('2019-08-14 13:09: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 (\'BN\',\n														10,\n														\'26993\',\n														\'AN\',\n														\'2019-08-15\',\n														\'TM057\',\n														\'I002\',\n														\'17.89\',\n														\'93\',\n														\'27494\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-44108.061\',\n														\'\' )'),('2019-08-14 13:09:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56701\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 13:09:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'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-08-14 13:09:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26993\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'TM057 - BN x 10 @ 17.89\',\n											\'-178.9\')'),('2019-08-14 13:09:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27494\'\n							AND orderlineno = \'1\''),('2019-08-14 13:09:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-14 13:09: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														\'26993\',\n														\'AN\',\n														\'2019-08-15\',\n														\'TM057\',\n														\'I002\',\n														\'20.64\',\n														\'93\',\n														\'27494\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-306198.65\',\n														\'\' )'),('2019-08-14 13:09:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56702\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 13:09:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'309.6\',\n										\'0\',\n										\'TM057\',\n										\'I002\',\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 = \'TM057\'\n								AND custbranch.branchcode=\'I002\''),('2019-08-14 13:09:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26993\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'TM057 - CP x 15 @ 20.64\',\n											\'-309.6\')'),('2019-08-14 13:09:02','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10.35,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27494\'\n							AND orderlineno = \'2\''),('2019-08-14 13:09:02','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10.35\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-14 13:09: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 (\'FF\',\n														10,\n														\'26993\',\n														\'AN\',\n														\'2019-08-15\',\n														\'TM057\',\n														\'I002\',\n														\'16.97\',\n														\'93\',\n														\'27494\',\n														\'-10.35\',\n														\'0\',\n														\'0.0000\',\n														\'-21068.42\',\n														\'\' )'),('2019-08-14 13:09:02','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56703\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 13:09:02','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'175.64\',\n										\'0\',\n										\'TM057\',\n										\'I002\',\n										\'10.35\',\n										\'0\',\n										\'FF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FF\'\n								AND custbranch.debtorno = \'TM057\'\n								AND custbranch.branchcode=\'I002\''),('2019-08-14 13:09:02','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26993\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'TM057 - FF x 10.35 @ 16.97\',\n											\'-175.64\')'),('2019-08-14 13:09:02','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26993\',\n										\'2019-08-15\',\n										\'93\',\n										\'1100\',\n										\'TM057\',\n										\'723.91\')'),('2019-08-14 13:09:02','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26993\',\n											\'2019-08-15\',\n											\'93\',\n											\'2300\',\n											\'TM057\',\n											\'-59.77\')'),('2019-08-14 13:09:02','zaabed','UPDATE gltrans SET amount = amount - -0.000000000000021316282072803006\n								WHERE counterindex = \'122142\''),('2019-08-14 15:18:00','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27495\',\n								\'TM077\',\n								\'P008\',\n								\'\',\n								\'\',\n								\'2019-08-14 15:18\',\n								\'DE\',\n								\'10\',\n								\'PEARL SOUTH PACIFIC\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-14 15:18:00','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27495\',\n					\'CHICKEN\',\n					\'155\',\n					\'3\',\n					\'0\',\n					\'1.4\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 15:18:00','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27495\',\n					\'BM500G\',\n					\'9.5\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 15:18:23','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26994\')\n			WHERE orderno= \'27495\''),('2019-08-14 15:18:23','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26994\',\n									10,\n									\'TM077\',\n									\'P008\',\n									\'2019-08-15\',\n									\'2019-08-14 15-18-23\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27495\',\n									\'655\',\n									\'58.95\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-14 15:18:23','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34077\',\n									\'1\',\n									\'58.95\')'),('2019-08-14 15:18:23','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27495\'\n							AND orderlineno = \'0\''),('2019-08-14 15:18:23','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-14 15:18:23','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'26994\',\n														\'AN\',\n														\'2019-08-15\',\n														\'TM077\',\n														\'P008\',\n														\'155\',\n														\'93\',\n														\'27495\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-87187.77\',\n														\'1.4\' )'),('2019-08-14 15:18:23','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56704\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 15:18:23','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'465\',\n										\'0\',\n										\'TM077\',\n										\'P008\',\n										\'3\',\n										\'0\',\n										\'CHICKEN\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CHICKEN\'\n								AND custbranch.debtorno = \'TM077\'\n								AND custbranch.branchcode=\'P008\''),('2019-08-14 15:18:23','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26994\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'TM077 - CHICKEN x 3 @ 155\',\n											\'-465\')'),('2019-08-14 15:18:23','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27495\'\n							AND orderlineno = \'1\''),('2019-08-14 15:18:23','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'BM500G\'\n						AND loccode = \'AN\''),('2019-08-14 15:18:23','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'BM500G\',\n														10,\n														\'26994\',\n														\'AN\',\n														\'2019-08-15\',\n														\'TM077\',\n														\'P008\',\n														\'9.5\',\n														\'93\',\n														\'27495\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-71719.11\',\n														\'\' )'),('2019-08-14 15:18:23','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56705\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 15:18:23','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'190\',\n										\'0\',\n										\'TM077\',\n										\'P008\',\n										\'20\',\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 = \'TM077\'\n								AND custbranch.branchcode=\'P008\''),('2019-08-14 15:18:23','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26994\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'TM077 - BM500G x 20 @ 9.5\',\n											\'-190\')'),('2019-08-14 15:18:23','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26994\',\n										\'2019-08-15\',\n										\'93\',\n										\'1100\',\n										\'TM077\',\n										\'713.95\')'),('2019-08-14 15:18:23','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26994\',\n											\'2019-08-15\',\n											\'93\',\n											\'2300\',\n											\'TM077\',\n											\'-58.95\')'),('2019-08-14 15:18:23','zaabed','UPDATE gltrans SET amount = amount - 0.00000000000004263256414560601\n								WHERE counterindex = \'122147\''),('2019-08-14 15:55: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								\'27496\',\n								\'TM047\',\n								\'D001\',\n								\'july\',\n								\'\',\n								\'2019-08-14 15:55\',\n								\'DE\',\n								\'10\',\n								\'DOROTHYS KITCHEN\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'2019-08-15\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-14 15:55: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					\'27496\',\n					\'LB\',\n					\'429.36\',\n					\'1\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 15:55: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					\'27496\',\n					\'BF\',\n					\'746.27\',\n					\'1\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-14\'\n				)'),('2019-08-14 15:55:20','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26995\')\n			WHERE orderno= \'27496\''),('2019-08-14 15:55: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									\'26995\',\n									10,\n									\'TM047\',\n									\'D001\',\n									\'2019-08-15\',\n									\'2019-08-14 15-55-20\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27496\',\n									\'1175.63\',\n									\'38.64\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-14 15:55:20','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34078\',\n									\'1\',\n									\'38.6424\')'),('2019-08-14 15:55:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 1,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27496\'\n							AND orderlineno = \'0\''),('2019-08-14 15:55:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 1\n						WHERE locstock.stockid = \'LB\'\n						AND loccode = \'AN\''),('2019-08-14 15:55: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 (\'LB\',\n														10,\n														\'26995\',\n														\'AN\',\n														\'2019-08-15\',\n														\'TM047\',\n														\'D001\',\n														\'429.36\',\n														\'93\',\n														\'27496\',\n														\'-1\',\n														\'0\',\n														\'0.0000\',\n														\'-3440.06\',\n														\'\' )'),('2019-08-14 15:55:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56706\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-14 15:55:20','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'429.36\',\n										\'0\',\n										\'TM047\',\n										\'D001\',\n										\'1\',\n										\'0\',\n										\'LB\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LB\'\n								AND custbranch.debtorno = \'TM047\'\n								AND custbranch.branchcode=\'D001\''),('2019-08-14 15:55:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26995\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'TM047 - LB x 1 @ 429.36\',\n											\'-429.36\')'),('2019-08-14 15:55:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 1,\n								actualdispatchdate = \'2019-08-15\',\n								completed=1\n							WHERE orderno = \'27496\'\n							AND orderlineno = \'1\''),('2019-08-14 15:55:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 1\n						WHERE locstock.stockid = \'BF\'\n						AND loccode = \'AN\''),('2019-08-14 15:55: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 (\'BF\',\n														10,\n														\'26995\',\n														\'AN\',\n														\'2019-08-15\',\n														\'TM047\',\n														\'D001\',\n														\'746.27\',\n														\'93\',\n														\'27496\',\n														\'-1\',\n														\'0\',\n														\'0.0000\',\n														\'-6552.71\',\n														\'\' )'),('2019-08-14 15:55:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56707\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-14 15:55:20','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'746.27\',\n										\'0\',\n										\'TM047\',\n										\'D001\',\n										\'1\',\n										\'0\',\n										\'BF\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BF\'\n								AND custbranch.debtorno = \'TM047\'\n								AND custbranch.branchcode=\'D001\''),('2019-08-14 15:55:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26995\',\n											\'2019-08-15\',\n											\'93\',\n											\'4100\',\n											\'TM047 - BF x 1 @ 746.27\',\n											\'-746.27\')'),('2019-08-14 15:55:20','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26995\',\n										\'2019-08-15\',\n										\'93\',\n										\'1100\',\n										\'TM047\',\n										\'1214.27\')'),('2019-08-14 15:55:20','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26995\',\n											\'2019-08-15\',\n											\'93\',\n											\'2300\',\n											\'TM047\',\n											\'-38.64\')'),('2019-08-14 15:55:20','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000012789769243681803\n								WHERE counterindex = \'122151\''),('2019-08-15 09:50:03','zaabed','UPDATE config SET confvalue = \'2019-08-15\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-15 12:36: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								\'27497\',\n								\'TM009\',\n								\'30\',\n								\'15975lp3\',\n								\'\',\n								\'2019-08-15 12:36\',\n								\'DE\',\n								\'10\',\n								\'GOUNDAR SHIPPING LIMITED\',\n								\'P O BOX 672 SUVA\',\n								\'3301021\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-16\',\n								\'2019-08-16\',\n								\'2019-08-16\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-15 12:36: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					\'27497\',\n					\'LPP\',\n					\'12.66\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-15\'\n				)'),('2019-08-15 12:36:52','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26996\')\n			WHERE orderno= \'27497\''),('2019-08-15 12:36:52','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									\'26996\',\n									10,\n									\'TM009\',\n									\'30\',\n									\'2019-08-16\',\n									\'2019-08-15 12-36-52\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27497\',\n									\'253.2\',\n									\'22.79\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-15 12:36:52','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34079\',\n									\'1\',\n									\'22.788\')'),('2019-08-15 12:36:52','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-16\',\n								completed=1\n							WHERE orderno = \'27497\'\n							AND orderlineno = \'0\''),('2019-08-15 12:36:52','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'LPP\'\n						AND loccode = \'AN\''),('2019-08-15 12:36:52','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LPP\',\n														10,\n														\'26996\',\n														\'AN\',\n														\'2019-08-16\',\n														\'TM009\',\n														\'30\',\n														\'12.66\',\n														\'93\',\n														\'27497\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-58933.52\',\n														\'\' )'),('2019-08-15 12:36:52','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56708\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-15 12:36:52','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'253.2\',\n										\'0\',\n										\'TM009\',\n										\'30\',\n										\'20\',\n										\'0\',\n										\'LPP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LPP\'\n								AND custbranch.debtorno = \'TM009\'\n								AND custbranch.branchcode=\'30\''),('2019-08-15 12:36:52','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26996\',\n											\'2019-08-16\',\n											\'93\',\n											\'4100\',\n											\'TM009 - LPP x 20 @ 12.66\',\n											\'-253.2\')'),('2019-08-15 12:36:52','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26996\',\n										\'2019-08-16\',\n										\'93\',\n										\'1100\',\n										\'TM009\',\n										\'275.99\')'),('2019-08-15 12:36:52','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26996\',\n											\'2019-08-16\',\n											\'93\',\n											\'2300\',\n											\'TM009\',\n											\'-22.79\')'),('2019-08-15 12:36:52','zaabed','UPDATE gltrans SET amount = amount - 0.000000000000021316282072803006\n								WHERE counterindex = \'122155\''),('2019-08-16 08:40:43','jhairud','UPDATE config SET confvalue = \'2019-08-16\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-16 09:42: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								\'27498\',\n								\'133\',\n								\'133\',\n								\'pick up\',\n								\'\',\n								\'2019-08-16 09:42\',\n								\'DE\',\n								\'1\',\n								\'YUM YUM LTD \',\n								\'Bure 3 Kundan Complex, 198-200 Prncs Rd \',\n								\'Tamavua\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'3380500\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-16 09:42: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					\'27498\',\n					\'FISH\',\n					\'12.50\',\n					\'3.24\',\n					\'0\',\n					\'marlin\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 09:42: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					\'27498\',\n					\'FISH\',\n					\'12.50\',\n					\'5.16\',\n					\'0\',\n					\'wahoo\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 09:42:12','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26997\')\n			WHERE orderno= \'27498\''),('2019-08-16 09:42:12','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26997\',\n									10,\n									\'133\',\n									\'133\',\n									\'2019-08-17\',\n									\'2019-08-16 09-42-12\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27498\',\n									\'105\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-16 09:42:12','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34080\',\n									\'1\',\n									\'0\')'),('2019-08-16 09:42:12','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.24,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27498\'\n							AND orderlineno = \'0\''),('2019-08-16 09:42:12','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.24\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-16 09:42:12','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FISH\',\n														10,\n														\'26997\',\n														\'AN\',\n														\'2019-08-17\',\n														\'133\',\n														\'133\',\n														\'12.5\',\n														\'93\',\n														\'27498\',\n														\'-3.24\',\n														\'0\',\n														\'0.0000\',\n														\'-45275.7801\',\n														\'marlin\' )'),('2019-08-16 09:42:12','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56709\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-16 09:42:12','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'40.5\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'3.24\',\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-08-16 09:42:12','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26997\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'133 - FISH x 3.24 @ 12.5\',\n											\'-40.5\')'),('2019-08-16 09:42:12','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5.16,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27498\'\n							AND orderlineno = \'1\''),('2019-08-16 09:42:12','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 5.16\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-16 09:42:12','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FISH\',\n														10,\n														\'26997\',\n														\'AN\',\n														\'2019-08-17\',\n														\'133\',\n														\'133\',\n														\'12.5\',\n														\'93\',\n														\'27498\',\n														\'-5.16\',\n														\'0\',\n														\'0.0000\',\n														\'-45280.9401\',\n														\'wahoo\' )'),('2019-08-16 09:42:12','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56710\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-16 09:42:12','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'64.5\',\n										\'0\',\n										\'133\',\n										\'133\',\n										\'5.16\',\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-08-16 09:42:12','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26997\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'133 - FISH x 5.16 @ 12.5\',\n											\'-64.5\')'),('2019-08-16 09:42:12','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26997\',\n										\'2019-08-17\',\n										\'93\',\n										\'1100\',\n										\'133\',\n										\'105\')'),('2019-08-16 10:46:11','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'585.5\',\n								\'34046\',\n								\'33624\'\n							)'),('2019-08-16 10:46:11','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'585.5\',\n						settled = \'1\'\n						WHERE id = \'33624\''),('2019-08-16 10:46:11','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'502.2\',\n								\'34046\',\n								\'33697\'\n							)'),('2019-08-16 10:46:11','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'502.2\',\n						settled = \'1\'\n						WHERE id = \'33697\''),('2019-08-16 10:46:11','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'457.36\',\n								\'34046\',\n								\'33763\'\n							)'),('2019-08-16 10:46:11','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'457.36\',\n						settled = \'1\'\n						WHERE id = \'33763\''),('2019-08-16 10:46:11','jhairud','UPDATE debtortrans\n				SET alloc = \'-1545.06\',\n				diffonexch = \'0\',\n				settled=\'0\'\n				WHERE id = \'34046\''),('2019-08-16 10:46:52','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'646.48\',\n								\'34046\',\n								\'33554\'\n							)'),('2019-08-16 10:46:52','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'646.48\',\n						settled = \'1\'\n						WHERE id = \'33554\''),('2019-08-16 10:46:52','jhairud','DELETE FROM custallocns WHERE id = \'30100\''),('2019-08-16 10:46:52','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'585.5\',\n								\'34046\',\n								\'33624\'\n							)'),('2019-08-16 10:46:52','jhairud','DELETE FROM custallocns WHERE id = \'30101\''),('2019-08-16 10:46:52','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'502.2\',\n								\'34046\',\n								\'33697\'\n							)'),('2019-08-16 10:46:52','jhairud','DELETE FROM custallocns WHERE id = \'30102\''),('2019-08-16 10:46:52','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'457.36\',\n								\'34046\',\n								\'33763\'\n							)'),('2019-08-16 10:46:52','jhairud','UPDATE debtortrans\n				SET alloc = \'-2191.54\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34046\''),('2019-08-16 10:49: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								\'27499\',\n								\'TM044\',\n								\'C008\',\n								\'\',\n								\'\',\n								\'2019-08-16 10:49\',\n								\'DE\',\n								\'10\',\n								\'CURRY HOUSE\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-16 10:49: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					\'27499\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 10:49:45','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26998\')\n			WHERE orderno= \'27499\''),('2019-08-16 10:49: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									\'26998\',\n									10,\n									\'TM044\',\n									\'C008\',\n									\'2019-08-17\',\n									\'2019-08-16 10-49-45\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27499\',\n									\'376.2\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-16 10:49:45','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34081\',\n									\'1\',\n									\'33.858\')'),('2019-08-16 10:49:45','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27499\'\n							AND orderlineno = \'0\''),('2019-08-16 10:49:45','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-16 10:49:45','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26998\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM044\',\n														\'C008\',\n														\'18.81\',\n														\'93\',\n														\'27499\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306218.65\',\n														\'\' )'),('2019-08-16 10:49:45','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56711\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-16 10:49:45','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'376.2\',\n										\'0\',\n										\'TM044\',\n										\'C008\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM044\'\n								AND custbranch.branchcode=\'C008\''),('2019-08-16 10:49:45','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26998\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM044 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-16 10:49:45','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26998\',\n										\'2019-08-17\',\n										\'93\',\n										\'1100\',\n										\'TM044\',\n										\'410.06\')'),('2019-08-16 10:49:45','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26998\',\n											\'2019-08-17\',\n											\'93\',\n											\'2300\',\n											\'TM044\',\n											\'-33.86\')'),('2019-08-16 10:51:49','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27500\',\n								\'TM074\',\n								\'P001\',\n								\'centerpoint\',\n								\'\',\n								\'2019-08-16 10:51\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-16 10:51:49','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27500\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 10:51:49','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27500\',\n					\'MBT\',\n					\'9.50\',\n					\'15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 10:52:04','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'26999\')\n			WHERE orderno= \'27500\''),('2019-08-16 10:52:04','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'26999\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-17\',\n									\'2019-08-16 10-52-04\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27500\',\n									\'518.7\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-16 10:52:04','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34082\',\n									\'1\',\n									\'33.858\')'),('2019-08-16 10:52:04','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27500\'\n							AND orderlineno = \'0\''),('2019-08-16 10:52:04','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-16 10:52:04','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CP\',\n														10,\n														\'26999\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27500\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306238.65\',\n														\'\' )'),('2019-08-16 10:52:04','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56712\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-16 10:52:04','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'376.2\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-16 10:52:04','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26999\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-16 10:52:04','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27500\'\n							AND orderlineno = \'1\''),('2019-08-16 10:52:04','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-16 10:52:04','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'MBT\',\n														10,\n														\'26999\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27500\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-7267.6\',\n														\'\' )'),('2019-08-16 10:52:04','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56713\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-16 10:52:04','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'142.5\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'15\',\n										\'0\',\n										\'MBT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-16 10:52:04','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'26999\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 15 @ 9.5\',\n											\'-142.5\')'),('2019-08-16 10:52:04','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'26999\',\n										\'2019-08-17\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'552.56\')'),('2019-08-16 10:52:04','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'26999\',\n											\'2019-08-17\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-08-16 10:52:04','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000009947598300641403\n								WHERE counterindex = \'122164\''),('2019-08-16 10:54:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'141.48\',\n								\'34045\',\n								\'31981\'\n							)'),('2019-08-16 10:54:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'141.48\',\n						settled = \'1\'\n						WHERE id = \'31981\''),('2019-08-16 10:54:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'17.1\',\n								\'34045\',\n								\'33220\'\n							)'),('2019-08-16 10:54:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'730.3\',\n						settled = \'1\'\n						WHERE id = \'33220\''),('2019-08-16 10:54:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'8.55\',\n								\'34045\',\n								\'33221\'\n							)'),('2019-08-16 10:54:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'438.71\',\n						settled = \'1\'\n						WHERE id = \'33221\''),('2019-08-16 10:54:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'9.29\',\n								\'34045\',\n								\'33222\'\n							)'),('2019-08-16 10:54:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'758.1\',\n						settled = \'0\'\n						WHERE id = \'33222\''),('2019-08-16 10:54:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'103.55\',\n								\'34045\',\n								\'33534\'\n							)'),('2019-08-16 10:54:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'103.55\',\n						settled = \'1\'\n						WHERE id = \'33534\''),('2019-08-16 10:54:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'58.62\',\n								\'34045\',\n								\'33572\'\n							)'),('2019-08-16 10:54:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'58.62\',\n						settled = \'1\'\n						WHERE id = \'33572\''),('2019-08-16 10:54:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'128.46\',\n								\'34045\',\n								\'33580\'\n							)'),('2019-08-16 10:54:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'128.46\',\n						settled = \'1\'\n						WHERE id = \'33580\''),('2019-08-16 10:54:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'712.78\',\n								\'34045\',\n								\'33619\'\n							)'),('2019-08-16 10:54:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'712.78\',\n						settled = \'1\'\n						WHERE id = \'33619\''),('2019-08-16 10:54:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'731.84\',\n								\'34045\',\n								\'33685\'\n							)'),('2019-08-16 10:54:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'731.84\',\n						settled = \'1\'\n						WHERE id = \'33685\''),('2019-08-16 10:54:37','jhairud','UPDATE debtortrans\n				SET alloc = \'-1911.67\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34045\''),('2019-08-16 10:57:39','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						\'4668\',\n						12,\n						\'L015\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 10-57-39\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-1033.84\',\n						\'0\',\n						\'DCR - 19/07/2019\'\n					)'),('2019-08-16 10:57:39','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'1033.84\'\n					WHERE debtorsmaster.debtorno=\'L015\''),('2019-08-16 10:57:39','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			\'4668\',\n			\'1100\',\n			\'DCR - 19/07/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'1033.84\',\n			\'FJD\'\n		)'),('2019-08-16 10:57:39','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4668\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'DCR - 19/07/2019\',\n					\'1033.84\'\n				)'),('2019-08-16 10:57:39','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4668\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'DCR - 19/07/2019\',\n							\'-1033.84\'\n							)'),('2019-08-16 10:58:39','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						\'4669\',\n						12,\n						\'154\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 10-58-39\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-3985.8\',\n						\'0\',\n						\'DCR - 19/07/2019\'\n					)'),('2019-08-16 10:58:39','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'3985.80\'\n					WHERE debtorsmaster.debtorno=\'154\''),('2019-08-16 10:58:39','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			\'4669\',\n			\'1100\',\n			\'DCR - 19/07/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'3985.8\',\n			\'FJD\'\n		)'),('2019-08-16 10:58:39','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4669\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'DCR - 19/07/2019\',\n					\'3985.8\'\n				)'),('2019-08-16 10:58:39','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4669\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'DCR - 19/07/2019\',\n							\'-3985.8\'\n							)'),('2019-08-16 11:00:39','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						\'4670\',\n						12,\n						\'TM057\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 11-00-39\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-727.33\',\n						\'0\',\n						\'DCR - 22/07/2019\'\n					)'),('2019-08-16 11:00:39','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'727.33\'\n					WHERE debtorsmaster.debtorno=\'TM057\''),('2019-08-16 11:00:39','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			\'4670\',\n			\'1100\',\n			\'DCR - 22/07/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'727.33\',\n			\'FJD\'\n		)'),('2019-08-16 11:00:39','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4670\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'DCR - 22/07/2019\',\n					\'727.33\'\n				)'),('2019-08-16 11:00:39','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4670\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'DCR - 22/07/2019\',\n							\'-727.33\'\n							)'),('2019-08-16 11:02:32','jhairud','INSERT INTO debtortrans (transno,\n											type,\n											debtorno,\n											branchcode,\n											trandate,\n											inputdate,\n											prd,\n											reference,\n											tpe,\n											rate,\n											ovamount,\n											ovdiscount,\n											invtext)\n					VALUES (\n						\'4671\',\n						12,\n						\'TM020\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 11-02-32\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-1459.51\',\n						\'0\',\n						\'DCR - 23/07/2019\'\n					)'),('2019-08-16 11:02:32','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'1459.51\'\n					WHERE debtorsmaster.debtorno=\'TM020\''),('2019-08-16 11:02:32','jhairud','INSERT INTO banktrans (type,\n								transno,\n								bankact,\n								ref,\n								exrate,\n								functionalexrate,\n								transdate,\n								banktranstype,\n								amount,\n								currcode)\n		VALUES (\n			12,\n			\'4671\',\n			\'1100\',\n			\'DCR - 23/07/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'1459.51\',\n			\'FJD\'\n		)'),('2019-08-16 11:02:32','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4671\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'DCR - 23/07/2019\',\n					\'1459.51\'\n				)'),('2019-08-16 11:02:32','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4671\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'DCR - 23/07/2019\',\n							\'-1459.51\'\n							)'),('2019-08-16 11:03: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								\'27501\',\n								\'TM013\',\n								\'41\',\n								\'00000421\',\n								\'\',\n								\'2019-08-16 11:03\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-16 11:03: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					\'27501\',\n					\'RE\',\n					\'32\',\n					\'1.25\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 11:03: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					\'27501\',\n					\'RDS\',\n					\'12\',\n					\'4\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 11:03: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					\'27501\',\n					\'SS\',\n					\'17.24\',\n					\'2\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 11:03: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					\'27501\',\n					\'BTS\',\n					\'14\',\n					\'2.5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 11:03:20','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27000\')\n			WHERE orderno= \'27501\''),('2019-08-16 11:03: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									\'27000\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-17\',\n									\'2019-08-16 11-03-20\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27501\',\n									\'157.48\',\n									\'14.17\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-16 11:03:20','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34087\',\n									\'1\',\n									\'14.1732\')'),('2019-08-16 11:03:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 1.25,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27501\'\n							AND orderlineno = \'0\''),('2019-08-16 11:03:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 1.25\n						WHERE locstock.stockid = \'RE\'\n						AND loccode = \'AN\''),('2019-08-16 11:03: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 (\'RE\',\n														10,\n														\'27000\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM013\',\n														\'41\',\n														\'32\',\n														\'93\',\n														\'27501\',\n														\'-1.25\',\n														\'0\',\n														\'0.0000\',\n														\'-14308.61\',\n														\'\' )'),('2019-08-16 11:03:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56714\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-16 11:03:20','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'40\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'1.25\',\n										\'0\',\n										\'RE\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RE\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-16 11:03:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27000\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RE x 1.25 @ 32\',\n											\'-40\')'),('2019-08-16 11:03:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27501\'\n							AND orderlineno = \'1\''),('2019-08-16 11:03:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4\n						WHERE locstock.stockid = \'RDS\'\n						AND loccode = \'AN\''),('2019-08-16 11:03: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 (\'RDS\',\n														10,\n														\'27000\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27501\',\n														\'-4\',\n														\'0\',\n														\'0.0000\',\n														\'-926.19\',\n														\'\' )'),('2019-08-16 11:03:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56715\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-16 11:03:20','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'48\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'4\',\n										\'0\',\n										\'RDS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RDS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-16 11:03:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27000\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RDS x 4 @ 12\',\n											\'-48\')'),('2019-08-16 11:03:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27501\'\n							AND orderlineno = \'2\''),('2019-08-16 11:03:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2\n						WHERE locstock.stockid = \'SS\'\n						AND loccode = \'AN\''),('2019-08-16 11:03: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 (\'SS\',\n														10,\n														\'27000\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM013\',\n														\'41\',\n														\'17.24\',\n														\'93\',\n														\'27501\',\n														\'-2\',\n														\'0\',\n														\'0.0000\',\n														\'-6706.25\',\n														\'\' )'),('2019-08-16 11:03:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56716\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-16 11:03:20','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'34.48\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'2\',\n										\'0\',\n										\'SS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-16 11:03:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27000\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SS x 2 @ 17.24\',\n											\'-34.48\')'),('2019-08-16 11:03:20','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2.5,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27501\'\n							AND orderlineno = \'3\''),('2019-08-16 11:03:20','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2.5\n						WHERE locstock.stockid = \'BTS\'\n						AND loccode = \'AN\''),('2019-08-16 11:03: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 (\'BTS\',\n														10,\n														\'27000\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27501\',\n														\'-2.5\',\n														\'0\',\n														\'0.0000\',\n														\'-5500.71\',\n														\'\' )'),('2019-08-16 11:03:20','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56717\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-16 11:03:20','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'35\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'2.5\',\n										\'0\',\n										\'BTS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BTS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-16 11:03:20','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27000\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BTS x 2.5 @ 14\',\n											\'-35\')'),('2019-08-16 11:03:20','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27000\',\n										\'2019-08-17\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'171.65\')'),('2019-08-16 11:03:20','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27000\',\n											\'2019-08-17\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-14.17\')'),('2019-08-16 11:03:20','zaabed','UPDATE gltrans SET amount = amount - 0.000000000000015987211554602254\n								WHERE counterindex = \'122176\''),('2019-08-16 11:05:24','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						\'4672\',\n						12,\n						\'TM030\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 11-05-24\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-555.9\',\n						\'0\',\n						\'DCR - 26/07/2019\'\n					)'),('2019-08-16 11:05:24','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'555.90\'\n					WHERE debtorsmaster.debtorno=\'TM030\''),('2019-08-16 11:05:24','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			\'4672\',\n			\'1100\',\n			\'DCR - 26/07/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'555.9\',\n			\'FJD\'\n		)'),('2019-08-16 11:05:24','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4672\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'DCR - 26/07/2019\',\n					\'555.9\'\n				)'),('2019-08-16 11:05:24','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4672\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'DCR - 26/07/2019\',\n							\'-555.9\'\n							)'),('2019-08-16 11:06:17','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						\'4673\',\n						12,\n						\'39\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 11-06-17\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-632.2\',\n						\'0\',\n						\'DCR - 26/07/2019\'\n					)'),('2019-08-16 11:06:17','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'632.20\'\n					WHERE debtorsmaster.debtorno=\'39\''),('2019-08-16 11:06:17','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			\'4673\',\n			\'1100\',\n			\'DCR - 26/07/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'632.2\',\n			\'FJD\'\n		)'),('2019-08-16 11:06:17','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4673\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'DCR - 26/07/2019\',\n					\'632.2\'\n				)'),('2019-08-16 11:06:17','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4673\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'DCR - 26/07/2019\',\n							\'-632.2\'\n							)'),('2019-08-16 11:07:03','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								\'27502\',\n								\'TM074\',\n								\'P001\',\n								\'Nakasi\',\n								\'\',\n								\'2019-08-16 11:07\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-16 11:07:03','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					\'27502\',\n					\'CP\',\n					\'18.81\',\n					\'20\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 11:07:03','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					\'27502\',\n					\'MBT\',\n					\'9.50\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 11:07:03','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					\'27502\',\n					\'SF500G\',\n					\'16.40\',\n					\'2.8\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 11:07:18','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27001\')\n			WHERE orderno= \'27502\''),('2019-08-16 11:07: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									\'27001\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-17\',\n									\'2019-08-16 11-07-18\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27502\',\n									\'517.12\',\n									\'33.86\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-16 11:07:18','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34090\',\n									\'1\',\n									\'33.858\')'),('2019-08-16 11:07:18','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 20,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27502\'\n							AND orderlineno = \'0\''),('2019-08-16 11:07:18','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 20\n						WHERE locstock.stockid = \'CP\'\n						AND loccode = \'AN\''),('2019-08-16 11:07: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 (\'CP\',\n														10,\n														\'27001\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM074\',\n														\'P001\',\n														\'18.81\',\n														\'93\',\n														\'27502\',\n														\'-20\',\n														\'0\',\n														\'0.0000\',\n														\'-306258.65\',\n														\'\' )'),('2019-08-16 11:07:18','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56718\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-16 11:07:18','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'376.2\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'20\',\n										\'0\',\n										\'CP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'CP\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-16 11:07:18','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27001\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM074 - CP x 20 @ 18.81\',\n											\'-376.2\')'),('2019-08-16 11:07:18','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27502\'\n							AND orderlineno = \'1\''),('2019-08-16 11:07:18','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'MBT\'\n						AND loccode = \'AN\''),('2019-08-16 11:07: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 (\'MBT\',\n														10,\n														\'27001\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM074\',\n														\'P001\',\n														\'9.5\',\n														\'93\',\n														\'27502\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-7277.6\',\n														\'\' )'),('2019-08-16 11:07:18','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56719\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-16 11:07:18','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'95\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'10\',\n										\'0\',\n										\'MBT\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'MBT\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-16 11:07:18','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27001\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM074 - MBT x 10 @ 9.5\',\n											\'-95\')'),('2019-08-16 11:07:18','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2.8,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27502\'\n							AND orderlineno = \'2\''),('2019-08-16 11:07:18','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2.8\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-16 11:07: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 (\'SF500G\',\n														10,\n														\'27001\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM074\',\n														\'P001\',\n														\'16.4\',\n														\'93\',\n														\'27502\',\n														\'-2.8\',\n														\'0\',\n														\'0.0000\',\n														\'-9586.081\',\n														\'\' )'),('2019-08-16 11:07:18','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56720\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-16 11:07:18','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'45.92\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'2.8\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-16 11:07:18','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27001\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM074 - SF500G x 2.8 @ 16.4\',\n											\'-45.92\')'),('2019-08-16 11:07:18','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27001\',\n										\'2019-08-17\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'550.98\')'),('2019-08-16 11:07:18','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27001\',\n											\'2019-08-17\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-33.86\')'),('2019-08-16 11:08: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						\'4674\',\n						12,\n						\'8\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 11-08-16\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-1029.29\',\n						\'0\',\n						\'DCR - 29/07/2019\'\n					)'),('2019-08-16 11:08:16','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'1029.29\'\n					WHERE debtorsmaster.debtorno=\'8\''),('2019-08-16 11:08: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			\'4674\',\n			\'1100\',\n			\'DCR - 29/07/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'1029.29\',\n			\'FJD\'\n		)'),('2019-08-16 11:08:16','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4674\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'DCR - 29/07/2019\',\n					\'1029.29\'\n				)'),('2019-08-16 11:08:16','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4674\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'DCR - 29/07/2019\',\n							\'-1029.29\'\n							)'),('2019-08-16 11:10:55','jhairud','INSERT INTO debtortrans (transno,\n											type,\n											debtorno,\n											branchcode,\n											trandate,\n											inputdate,\n											prd,\n											reference,\n											tpe,\n											rate,\n											ovamount,\n											ovdiscount,\n											invtext)\n					VALUES (\n						\'4675\',\n						12,\n						\'L015\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 11-10-55\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-516.92\',\n						\'0\',\n						\'DCR - 29/07/2019\'\n					)'),('2019-08-16 11:10:55','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'516.92\'\n					WHERE debtorsmaster.debtorno=\'L015\''),('2019-08-16 11:10:55','jhairud','INSERT INTO banktrans (type,\n								transno,\n								bankact,\n								ref,\n								exrate,\n								functionalexrate,\n								transdate,\n								banktranstype,\n								amount,\n								currcode)\n		VALUES (\n			12,\n			\'4675\',\n			\'1100\',\n			\'DCR - 29/07/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'516.92\',\n			\'FJD\'\n		)'),('2019-08-16 11:10:55','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4675\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'DCR - 29/07/2019\',\n					\'516.92\'\n				)'),('2019-08-16 11:10:55','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4675\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'DCR - 29/07/2019\',\n							\'-516.92\'\n							)'),('2019-08-16 11:12:10','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						\'4676\',\n						12,\n						\'154\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 11-12-10\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-4650.1\',\n						\'0\',\n						\'DCR - 29/07/2019\'\n					)'),('2019-08-16 11:12:10','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'4650.10\'\n					WHERE debtorsmaster.debtorno=\'154\''),('2019-08-16 11:12:10','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			\'4676\',\n			\'1100\',\n			\'DCR - 29/07/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'4650.1\',\n			\'FJD\'\n		)'),('2019-08-16 11:12:10','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4676\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'DCR - 29/07/2019\',\n					\'4650.1\'\n				)'),('2019-08-16 11:12:10','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4676\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'DCR - 29/07/2019\',\n							\'-4650.1\'\n							)'),('2019-08-16 11:13:30','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						\'4677\',\n						12,\n						\'TM079\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 11-13-30\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-6000\',\n						\'0\',\n						\'DCR - 02/08/2019\'\n					)'),('2019-08-16 11:13:30','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'6000.00\'\n					WHERE debtorsmaster.debtorno=\'TM079\''),('2019-08-16 11:13:30','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			\'4677\',\n			\'1100\',\n			\'DCR - 02/08/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'6000\',\n			\'FJD\'\n		)'),('2019-08-16 11:13:30','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4677\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'DCR - 02/08/2019\',\n					\'6000\'\n				)'),('2019-08-16 11:13:30','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4677\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'DCR - 02/08/2019\',\n							\'-6000\'\n							)'),('2019-08-16 11:14:37','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27503\',\n								\'TM058\',\n								\'J012\',\n								\'1029suva\',\n								\'\',\n								\'2019-08-16 11:14\',\n								\'DE\',\n								\'10\',\n								\'JACKS RESTAURANT\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-16 11:14:37','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27503\',\n					\'LM\',\n					\'19.00\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 11:14:42','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27002\')\n			WHERE orderno= \'27503\''),('2019-08-16 11:14: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									\'27002\',\n									10,\n									\'TM058\',\n									\'J012\',\n									\'2019-08-17\',\n									\'2019-08-16 11-14-42\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27503\',\n									\'190\',\n									\'17.1\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-16 11:14:42','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34095\',\n									\'1\',\n									\'17.1\')'),('2019-08-16 11:14:42','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27503\'\n							AND orderlineno = \'0\''),('2019-08-16 11:14:42','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-16 11:14: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 (\'LM\',\n														10,\n														\'27002\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM058\',\n														\'J012\',\n														\'19\',\n														\'93\',\n														\'27503\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-32048.78\',\n														\'\' )'),('2019-08-16 11:14:42','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56721\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-16 11:14:42','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'190\',\n										\'0\',\n										\'TM058\',\n										\'J012\',\n										\'10\',\n										\'0\',\n										\'LM\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LM\'\n								AND custbranch.debtorno = \'TM058\'\n								AND custbranch.branchcode=\'J012\''),('2019-08-16 11:14:42','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27002\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM058 - LM x 10 @ 19\',\n											\'-190\')'),('2019-08-16 11:14:42','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27002\',\n										\'2019-08-17\',\n										\'93\',\n										\'1100\',\n										\'TM058\',\n										\'207.1\')'),('2019-08-16 11:14:42','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27002\',\n											\'2019-08-17\',\n											\'93\',\n											\'2300\',\n											\'TM058\',\n											\'-17.1\')'),('2019-08-16 11:14:44','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						\'4678\',\n						12,\n						\'F005\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 11-14-44\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-3989.84\',\n						\'0\',\n						\'DCR - 08/08/2019\'\n					)'),('2019-08-16 11:14:44','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'3989.84\'\n					WHERE debtorsmaster.debtorno=\'F005\''),('2019-08-16 11:14:44','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			\'4678\',\n			\'1100\',\n			\'DCR - 08/08/2019\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'3989.84\',\n			\'FJD\'\n		)'),('2019-08-16 11:14:44','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4678\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'DCR - 08/08/2019\',\n					\'3989.84\'\n				)'),('2019-08-16 11:14:44','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4678\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'DCR - 08/08/2019\',\n							\'-3989.84\'\n							)'),('2019-08-16 11:15:19','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'0.44\',\n								\'34096\',\n								\'27118\'\n							)'),('2019-08-16 11:15:19','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'700.22\',\n						settled = \'1\'\n						WHERE id = \'27118\''),('2019-08-16 11:15:19','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'3989.4\',\n								\'34096\',\n								\'33464\'\n							)'),('2019-08-16 11:15:19','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'3989.4\',\n						settled = \'1\'\n						WHERE id = \'33464\''),('2019-08-16 11:15:19','jhairud','UPDATE debtortrans\n				SET alloc = \'-3989.84\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34096\''),('2019-08-16 11:16:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'452.52\',\n								\'34085\',\n								\'33569\'\n							)'),('2019-08-16 11:16:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'452.52\',\n						settled = \'1\'\n						WHERE id = \'33569\''),('2019-08-16 11:16:37','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'274.81\',\n								\'34085\',\n								\'33620\'\n							)'),('2019-08-16 11:16:37','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'274.81\',\n						settled = \'0\'\n						WHERE id = \'33620\''),('2019-08-16 11:16:37','jhairud','UPDATE debtortrans\n				SET alloc = \'-727.33\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34085\''),('2019-08-16 11:16:54','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'3985.8\',\n								\'34084\',\n								\'33779\'\n							)'),('2019-08-16 11:16:54','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'3985.8\',\n						settled = \'1\'\n						WHERE id = \'33779\''),('2019-08-16 11:16:54','jhairud','UPDATE debtortrans\n				SET alloc = \'-3985.8\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34084\''),('2019-08-16 11:17:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'4650.1\',\n								\'34093\',\n								\'33666\'\n							)'),('2019-08-16 11:17:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'4650.1\',\n						settled = \'1\'\n						WHERE id = \'33666\''),('2019-08-16 11:17:05','jhairud','UPDATE debtortrans\n				SET alloc = \'-4650.1\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34093\''),('2019-08-16 11:17:13','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'516.92\',\n								\'34092\',\n								\'33892\'\n							)'),('2019-08-16 11:17:13','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'516.92\',\n						settled = \'1\'\n						WHERE id = \'33892\''),('2019-08-16 11:17:13','jhairud','UPDATE debtortrans\n				SET alloc = \'-516.92\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34092\''),('2019-08-16 11:17:20','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'1033.84\',\n								\'34083\',\n								\'33603\'\n							)'),('2019-08-16 11:17:20','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1033.84\',\n						settled = \'1\'\n						WHERE id = \'33603\''),('2019-08-16 11:17:20','jhairud','UPDATE debtortrans\n				SET alloc = \'-1033.84\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34083\''),('2019-08-16 11:17:31','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'632.2\',\n								\'34089\',\n								\'33757\'\n							)'),('2019-08-16 11:17:31','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'632.2\',\n						settled = \'1\'\n						WHERE id = \'33757\''),('2019-08-16 11:17:31','jhairud','UPDATE debtortrans\n				SET alloc = \'-632.2\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34089\''),('2019-08-16 11:17:54','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'1029.29\',\n								\'34091\',\n								\'33600\'\n							)'),('2019-08-16 11:17:54','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1029.29\',\n						settled = \'1\'\n						WHERE id = \'33600\''),('2019-08-16 11:17:54','jhairud','UPDATE debtortrans\n				SET alloc = \'-1029.29\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34091\''),('2019-08-16 11:18:19','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'555.9\',\n								\'34088\',\n								\'33728\'\n							)'),('2019-08-16 11:18:19','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'555.9\',\n						settled = \'1\'\n						WHERE id = \'33728\''),('2019-08-16 11:18:19','jhairud','UPDATE debtortrans\n				SET alloc = \'-555.9\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34088\''),('2019-08-16 11:18:33','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27504\',\n								\'TM087\',\n								\'S051\',\n								\'12331\',\n								\'\',\n								\'2019-08-16 11:18\',\n								\'DE\',\n								\'10\',\n								\'SUVA MOTOR INN\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'2019-08-17\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-16 11:18:33','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27504\',\n					\'WAHOO\',\n					\'22\',\n					\'12.9\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 11:18:33','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'1\',\n					\'27504\',\n					\'RS\',\n					\'16.35\',\n					\'10.95\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 11:18:33','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'2\',\n					\'27504\',\n					\'CHICKEN\',\n					\'18.00\',\n					\'15\',\n					\'0\',\n					\'supreme\',\n					\'\',\n					\'2019-08-16\'\n				)'),('2019-08-16 11:18:34','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'6000.00\',\n								\'34094\',\n								\'27124\'\n							)'),('2019-08-16 11:18:34','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'14246.51\',\n						settled = \'0\'\n						WHERE id = \'27124\''),('2019-08-16 11:18:34','jhairud','UPDATE debtortrans\n				SET alloc = \'-6000\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34094\''),('2019-08-16 11:18:44','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27003\')\n			WHERE orderno= \'27504\''),('2019-08-16 11:18: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									\'27003\',\n									10,\n									\'TM087\',\n									\'S051\',\n									\'2019-08-17\',\n									\'2019-08-16 11-18-44\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27504\',\n									\'732.83\',\n									\'65.95\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-16 11:18:44','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34097\',\n									\'1\',\n									\'65.954925\')'),('2019-08-16 11:18:44','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 12.9,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27504\'\n							AND orderlineno = \'0\''),('2019-08-16 11:18:44','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 12.9\n						WHERE locstock.stockid = \'WAHOO\'\n						AND loccode = \'AN\''),('2019-08-16 11:18: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 (\'WAHOO\',\n														10,\n														\'27003\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM087\',\n														\'S051\',\n														\'22\',\n														\'93\',\n														\'27504\',\n														\'-12.9\',\n														\'0\',\n														\'0.0000\',\n														\'-52295.4\',\n														\'\' )'),('2019-08-16 11:18:44','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56722\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-16 11:18:44','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'283.8\',\n										\'0\',\n										\'TM087\',\n										\'S051\',\n										\'12.9\',\n										\'0\',\n										\'WAHOO\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'WAHOO\'\n								AND custbranch.debtorno = \'TM087\'\n								AND custbranch.branchcode=\'S051\''),('2019-08-16 11:18:44','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27003\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM087 - WAHOO x 12.9 @ 22\',\n											\'-283.8\')'),('2019-08-16 11:18:44','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10.95,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27504\'\n							AND orderlineno = \'1\''),('2019-08-16 11:18:44','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10.95\n						WHERE locstock.stockid = \'RS\'\n						AND loccode = \'AN\''),('2019-08-16 11:18: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 (\'RS\',\n														10,\n														\'27003\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM087\',\n														\'S051\',\n														\'16.35\',\n														\'93\',\n														\'27504\',\n														\'-10.95\',\n														\'0\',\n														\'0.0000\',\n														\'-19871.99\',\n														\'\' )'),('2019-08-16 11:18:44','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56723\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-16 11:18:44','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'179.03\',\n										\'0\',\n										\'TM087\',\n										\'S051\',\n										\'10.95\',\n										\'0\',\n										\'RS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RS\'\n								AND custbranch.debtorno = \'TM087\'\n								AND custbranch.branchcode=\'S051\''),('2019-08-16 11:18:44','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27003\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM087 - RS x 10.95 @ 16.35\',\n											\'-179.03\')'),('2019-08-16 11:18:44','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15,\n								actualdispatchdate = \'2019-08-17\',\n								completed=1\n							WHERE orderno = \'27504\'\n							AND orderlineno = \'2\''),('2019-08-16 11:18:44','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 15\n						WHERE locstock.stockid = \'CHICKEN\'\n						AND loccode = \'AN\''),('2019-08-16 11:18:44','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'CHICKEN\',\n														10,\n														\'27003\',\n														\'AN\',\n														\'2019-08-17\',\n														\'TM087\',\n														\'S051\',\n														\'18\',\n														\'93\',\n														\'27504\',\n														\'-15\',\n														\'0\',\n														\'0.0000\',\n														\'-87202.77\',\n														\'supreme\' )'),('2019-08-16 11:18:44','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56724\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-16 11:18:44','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'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-08-16 11:18:44','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27003\',\n											\'2019-08-17\',\n											\'93\',\n											\'4100\',\n											\'TM087 - CHICKEN x 15 @ 18\',\n											\'-270\')'),('2019-08-16 11:18:44','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27003\',\n										\'2019-08-17\',\n										\'93\',\n										\'1100\',\n										\'TM087\',\n										\'798.78\')'),('2019-08-16 11:18:44','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27003\',\n											\'2019-08-17\',\n											\'93\',\n											\'2300\',\n											\'TM087\',\n											\'-65.95\')'),('2019-08-16 11:18:44','zaabed','UPDATE gltrans SET amount = amount - -0.00000000000007105427357601002\n								WHERE counterindex = \'122204\''),('2019-08-16 16:08:00','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						\'4679\',\n						12,\n						\'8\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-08-00\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-2797.86\',\n						\'0\',\n						\'\'\n					)'),('2019-08-16 16:08:00','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'2797.86\'\n					WHERE debtorsmaster.debtorno=\'8\''),('2019-08-16 16:08:00','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			\'4679\',\n			\'1100\',\n			\'\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'2797.86\',\n			\'FJD\'\n		)'),('2019-08-16 16:08:00','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4679\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'\',\n					\'2797.86\'\n				)'),('2019-08-16 16:08:00','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4679\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'\',\n							\'-2797.86\'\n							)'),('2019-08-16 16:08:50','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'40.44\',\n								\'34098\',\n								\'33138\'\n							)'),('2019-08-16 16:08:50','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'572.25\',\n						settled = \'1\'\n						WHERE id = \'33138\''),('2019-08-16 16:08:50','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'895.54\',\n								\'34098\',\n								\'33269\'\n							)'),('2019-08-16 16:08:50','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'895.54\',\n						settled = \'1\'\n						WHERE id = \'33269\''),('2019-08-16 16:08:50','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'398.67\',\n								\'34098\',\n								\'33347\'\n							)'),('2019-08-16 16:08:50','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'398.67\',\n						settled = \'1\'\n						WHERE id = \'33347\''),('2019-08-16 16:08:50','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'538.46\',\n								\'34098\',\n								\'33484\'\n							)'),('2019-08-16 16:08:50','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'538.46\',\n						settled = \'1\'\n						WHERE id = \'33484\''),('2019-08-16 16:08:50','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'482.65\',\n								\'34098\',\n								\'33848\'\n							)'),('2019-08-16 16:08:50','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'482.65\',\n						settled = \'1\'\n						WHERE id = \'33848\''),('2019-08-16 16:08:50','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'442.1\',\n								\'34098\',\n								\'33928\'\n							)'),('2019-08-16 16:08:50','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'442.1\',\n						settled = \'1\'\n						WHERE id = \'33928\''),('2019-08-16 16:08:50','jhairud','UPDATE debtortrans\n				SET alloc = \'-2797.86\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34098\''),('2019-08-16 16:14:47','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						\'4680\',\n						12,\n						\'TM009\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-14-47\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-2759.9\',\n						\'0\',\n						\'ANZ# 7900\'\n					)'),('2019-08-16 16:14:47','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'2759.90\'\n					WHERE debtorsmaster.debtorno=\'TM009\''),('2019-08-16 16:14:47','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			\'4680\',\n			\'1100\',\n			\'ANZ# 7900\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Cheque\',\n			\'2759.9\',\n			\'FJD\'\n		)'),('2019-08-16 16:14:47','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4680\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 7900\',\n					\'2759.9\'\n				)'),('2019-08-16 16:14:47','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4680\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 7900\',\n							\'-2759.9\'\n							)'),('2019-08-16 16:16:50','jhairud','INSERT INTO debtortrans (transno,\n											type,\n											debtorno,\n											branchcode,\n											trandate,\n											inputdate,\n											prd,\n											reference,\n											tpe,\n											rate,\n											ovamount,\n											ovdiscount,\n											invtext)\n					VALUES (\n						\'4681\',\n						12,\n						\'24\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-16-50\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-3574.89\',\n						\'0\',\n						\'BSP# 4187\'\n					)'),('2019-08-16 16:16:50','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'3574.89\'\n					WHERE debtorsmaster.debtorno=\'24\''),('2019-08-16 16:16:50','jhairud','INSERT INTO banktrans (type,\n								transno,\n								bankact,\n								ref,\n								exrate,\n								functionalexrate,\n								transdate,\n								banktranstype,\n								amount,\n								currcode)\n		VALUES (\n			12,\n			\'4681\',\n			\'1100\',\n			\'BSP# 4187\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Cheque\',\n			\'3574.89\',\n			\'FJD\'\n		)'),('2019-08-16 16:16:50','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4681\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'BSP# 4187\',\n					\'3574.89\'\n				)'),('2019-08-16 16:16:50','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4681\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'BSP# 4187\',\n							\'-3574.89\'\n							)'),('2019-08-16 16:18:17','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						\'4682\',\n						12,\n						\'2\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-18-17\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-2003.53\',\n						\'0\',\n						\'ANZ# 7300\'\n					)'),('2019-08-16 16:18:17','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'2003.53\'\n					WHERE debtorsmaster.debtorno=\'2\''),('2019-08-16 16:18:17','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			\'4682\',\n			\'1100\',\n			\'ANZ# 7300\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Cheque\',\n			\'2003.53\',\n			\'FJD\'\n		)'),('2019-08-16 16:18:17','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4682\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 7300\',\n					\'2003.53\'\n				)'),('2019-08-16 16:18:17','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4682\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 7300\',\n							\'-2003.53\'\n							)'),('2019-08-16 16:19:55','jhairud','INSERT INTO debtortrans (transno,\n											type,\n											debtorno,\n											branchcode,\n											trandate,\n											inputdate,\n											prd,\n											reference,\n											tpe,\n											rate,\n											ovamount,\n											ovdiscount,\n											invtext)\n					VALUES (\n						\'4683\',\n						12,\n						\'22\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-19-55\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-1334.27\',\n						\'0\',\n						\'ANZ# 11434\'\n					)'),('2019-08-16 16:19:55','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'1334.27\'\n					WHERE debtorsmaster.debtorno=\'22\''),('2019-08-16 16:19:55','jhairud','INSERT INTO banktrans (type,\n								transno,\n								bankact,\n								ref,\n								exrate,\n								functionalexrate,\n								transdate,\n								banktranstype,\n								amount,\n								currcode)\n		VALUES (\n			12,\n			\'4683\',\n			\'1100\',\n			\'ANZ# 11434\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Cheque\',\n			\'1334.27\',\n			\'FJD\'\n		)'),('2019-08-16 16:19:55','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4683\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 11434\',\n					\'1334.27\'\n				)'),('2019-08-16 16:19:55','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4683\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 11434\',\n							\'-1334.27\'\n							)'),('2019-08-16 16:21:17','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						\'4684\',\n						12,\n						\'25\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-21-17\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-1751.49\',\n						\'0\',\n						\'ANZ# 30275\'\n					)'),('2019-08-16 16:21:17','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'1751.49\'\n					WHERE debtorsmaster.debtorno=\'25\''),('2019-08-16 16:21:17','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			\'4684\',\n			\'1100\',\n			\'ANZ# 30275\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Cheque\',\n			\'1751.49\',\n			\'FJD\'\n		)'),('2019-08-16 16:21:17','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4684\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 30275\',\n					\'1751.49\'\n				)'),('2019-08-16 16:21:17','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4684\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 30275\',\n							\'-1751.49\'\n							)'),('2019-08-16 16:22:29','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						\'4685\',\n						12,\n						\'R023\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-22-29\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-5293.99\',\n						\'0\',\n						\'ANZ# 15928\'\n					)'),('2019-08-16 16:22:29','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'5293.99\'\n					WHERE debtorsmaster.debtorno=\'R023\''),('2019-08-16 16:22:29','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			\'4685\',\n			\'1100\',\n			\'ANZ# 15928\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Cheque\',\n			\'5293.99\',\n			\'FJD\'\n		)'),('2019-08-16 16:22:29','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4685\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 15928\',\n					\'5293.99\'\n				)'),('2019-08-16 16:22:29','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4685\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 15928\',\n							\'-5293.99\'\n							)'),('2019-08-16 16:24:39','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						\'4686\',\n						12,\n						\'23\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-24-39\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-3364.14\',\n						\'0\',\n						\'ANZ# 26909\'\n					)'),('2019-08-16 16:24:39','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'3364.14\'\n					WHERE debtorsmaster.debtorno=\'23\''),('2019-08-16 16:24:39','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			\'4686\',\n			\'1100\',\n			\'ANZ# 26909\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Cheque\',\n			\'3364.14\',\n			\'FJD\'\n		)'),('2019-08-16 16:24:39','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4686\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 26909\',\n					\'3364.14\'\n				)'),('2019-08-16 16:24:39','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4686\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 26909\',\n							\'-3364.14\'\n							)'),('2019-08-16 16:26:25','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						\'4687\',\n						12,\n						\'18\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-26-25\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-5140.91\',\n						\'0\',\n						\'ANZ# 28612\'\n					)'),('2019-08-16 16:26:25','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'5140.91\'\n					WHERE debtorsmaster.debtorno=\'18\''),('2019-08-16 16:26:25','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			\'4687\',\n			\'1100\',\n			\'ANZ# 28612\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Cheque\',\n			\'5140.91\',\n			\'FJD\'\n		)'),('2019-08-16 16:26:25','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4687\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 28612\',\n					\'5140.91\'\n				)'),('2019-08-16 16:26:25','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4687\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 28612\',\n							\'-5140.91\'\n							)'),('2019-08-16 16:29:57','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						\'4688\',\n						12,\n						\'21\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-29-57\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-5074.88\',\n						\'0\',\n						\'ANZ# 20358\'\n					)'),('2019-08-16 16:29:57','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'5074.88\'\n					WHERE debtorsmaster.debtorno=\'21\''),('2019-08-16 16:29:57','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			\'4688\',\n			\'1100\',\n			\'ANZ# 20358\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Cheque\',\n			\'5074.88\',\n			\'FJD\'\n		)'),('2019-08-16 16:29:57','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4688\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 20358\',\n					\'5074.88\'\n				)'),('2019-08-16 16:29:57','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4688\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 20358\',\n							\'-5074.88\'\n							)'),('2019-08-16 16:32:03','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						\'4689\',\n						12,\n						\'TM053\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-32-03\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-12604.56\',\n						\'0\',\n						\'WBC# 26252\'\n					)'),('2019-08-16 16:32:03','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'12604.56\'\n					WHERE debtorsmaster.debtorno=\'TM053\''),('2019-08-16 16:32:03','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			\'4689\',\n			\'1100\',\n			\'WBC# 26252\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Cheque\',\n			\'12604.56\',\n			\'FJD\'\n		)'),('2019-08-16 16:32:03','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4689\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'WBC# 26252\',\n					\'12604.56\'\n				)'),('2019-08-16 16:32:03','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4689\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'WBC# 26252\',\n							\'-12604.56\'\n							)'),('2019-08-16 16:32:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'551.98\',\n								\'34099\',\n								\'33207\'\n							)'),('2019-08-16 16:32:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'551.98\',\n						settled = \'1\'\n						WHERE id = \'33207\''),('2019-08-16 16:32:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'275.99\',\n								\'34099\',\n								\'33243\'\n							)'),('2019-08-16 16:32:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'275.99\',\n						settled = \'1\'\n						WHERE id = \'33243\''),('2019-08-16 16:32:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'551.98\',\n								\'34099\',\n								\'33276\'\n							)'),('2019-08-16 16:32:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'551.98\',\n						settled = \'1\'\n						WHERE id = \'33276\''),('2019-08-16 16:32:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'551.98\',\n								\'34099\',\n								\'33361\'\n							)'),('2019-08-16 16:32:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'551.98\',\n						settled = \'1\'\n						WHERE id = \'33361\''),('2019-08-16 16:32:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'551.98\',\n								\'34099\',\n								\'33414\'\n							)'),('2019-08-16 16:32:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'551.98\',\n						settled = \'1\'\n						WHERE id = \'33414\''),('2019-08-16 16:32:56','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'275.99\',\n								\'34099\',\n								\'33477\'\n							)'),('2019-08-16 16:32:56','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'275.99\',\n						settled = \'1\'\n						WHERE id = \'33477\''),('2019-08-16 16:32:56','jhairud','UPDATE debtortrans\n				SET alloc = \'-2759.9\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34099\''),('2019-08-16 16:37:09','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'3284.72\',\n								\'34108\',\n								\'30788\'\n							)'),('2019-08-16 16:37:09','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'3284.72\',\n						settled = \'1\'\n						WHERE id = \'30788\''),('2019-08-16 16:37:09','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'652.37\',\n								\'34108\',\n								\'31167\'\n							)'),('2019-08-16 16:37:09','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'652.37\',\n						settled = \'1\'\n						WHERE id = \'31167\''),('2019-08-16 16:37:09','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'3022.53\',\n								\'34108\',\n								\'31409\'\n							)'),('2019-08-16 16:37:09','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'3022.53\',\n						settled = \'1\'\n						WHERE id = \'31409\''),('2019-08-16 16:37:09','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'5203.49\',\n								\'34108\',\n								\'31513\'\n							)'),('2019-08-16 16:37:09','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'5203.49\',\n						settled = \'1\'\n						WHERE id = \'31513\''),('2019-08-16 16:37:09','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'441.45\',\n								\'34108\',\n								\'31538\'\n							)'),('2019-08-16 16:37:09','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'441.45\',\n						settled = \'1\'\n						WHERE id = \'31538\''),('2019-08-16 16:37:09','jhairud','UPDATE debtortrans\n				SET alloc = \'-12604.56\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34108\''),('2019-08-16 16:37:43','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'5140.91\',\n								\'34106\',\n								\'33595\'\n							)'),('2019-08-16 16:37:43','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'5140.91\',\n						settled = \'1\'\n						WHERE id = \'33595\''),('2019-08-16 16:37:43','jhairud','UPDATE debtortrans\n				SET alloc = \'-5140.91\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34106\''),('2019-08-16 16:38:19','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'3574.89\',\n								\'34100\',\n								\'33593\'\n							)'),('2019-08-16 16:38:19','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'3574.89\',\n						settled = \'1\'\n						WHERE id = \'33593\''),('2019-08-16 16:38:19','jhairud','UPDATE debtortrans\n				SET alloc = \'-3574.89\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34100\''),('2019-08-16 16:38:49','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'3364.14\',\n								\'34105\',\n								\'33562\'\n							)'),('2019-08-16 16:38:49','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'3364.14\',\n						settled = \'1\'\n						WHERE id = \'33562\''),('2019-08-16 16:38:49','jhairud','UPDATE debtortrans\n				SET alloc = \'-3364.14\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34105\''),('2019-08-16 16:39:00','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'2003.53\',\n								\'34101\',\n								\'33559\'\n							)'),('2019-08-16 16:39:00','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'2003.53\',\n						settled = \'1\'\n						WHERE id = \'33559\''),('2019-08-16 16:39:00','jhairud','UPDATE debtortrans\n				SET alloc = \'-2003.53\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34101\''),('2019-08-16 16:39:10','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'5293.99\',\n								\'34104\',\n								\'33592\'\n							)'),('2019-08-16 16:39:10','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'5293.99\',\n						settled = \'1\'\n						WHERE id = \'33592\''),('2019-08-16 16:39:10','jhairud','UPDATE debtortrans\n				SET alloc = \'-5293.99\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34104\''),('2019-08-16 16:39:23','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'1334.27\',\n								\'34102\',\n								\'33560\'\n							)'),('2019-08-16 16:39:23','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1334.27\',\n						settled = \'1\'\n						WHERE id = \'33560\''),('2019-08-16 16:39:23','jhairud','UPDATE debtortrans\n				SET alloc = \'-1334.27\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34102\''),('2019-08-16 16:39:33','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'1751.49\',\n								\'34103\',\n								\'33594\'\n							)'),('2019-08-16 16:39:33','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1751.49\',\n						settled = \'1\'\n						WHERE id = \'33594\''),('2019-08-16 16:39:33','jhairud','UPDATE debtortrans\n				SET alloc = \'-1751.49\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34103\''),('2019-08-16 16:39:45','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'5074.88\',\n								\'34107\',\n								\'33561\'\n							)'),('2019-08-16 16:39:45','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'5074.88\',\n						settled = \'1\'\n						WHERE id = \'33561\''),('2019-08-16 16:39:45','jhairud','UPDATE debtortrans\n				SET alloc = \'-5074.88\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34107\''),('2019-08-16 16:53:00','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						\'4690\',\n						12,\n						\'150\',\n						\'\',\n						\'2019-08-16\',\n						\'2019-08-16 16-53-00\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-1767.17\',\n						\'0\',\n						\'\'\n					)'),('2019-08-16 16:53:00','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-16\',\n						lastpaid=\'1767.17\'\n					WHERE debtorsmaster.debtorno=\'150\''),('2019-08-16 16:53:00','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			\'4690\',\n			\'1100\',\n			\'\',\n			\'1\',\n			\'1\',\n			\'2019-08-16\',\n			\'Direct Credit\',\n			\'1767.17\',\n			\'FJD\'\n		)'),('2019-08-16 16:53:00','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4690\',\n					\'2019-08-16\',\n					\'93\',\n					\'1100\',\n					\'\',\n					\'1767.17\'\n				)'),('2019-08-16 16:53:00','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4690\',\n							\'2019-08-16\',\n							\'93\',\n							\'1100\',\n							\'\',\n							\'-1767.17\'\n							)'),('2019-08-16 16:54:13','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'606.59\',\n								\'34109\',\n								\'31801\'\n							)'),('2019-08-16 16:54:13','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'606.59\',\n						settled = \'1\'\n						WHERE id = \'31801\''),('2019-08-16 16:54:13','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-16\',\n								\'1160.58\',\n								\'34109\',\n								\'31846\'\n							)'),('2019-08-16 16:54:13','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1160.58\',\n						settled = \'1\'\n						WHERE id = \'31846\''),('2019-08-16 16:54:13','jhairud','UPDATE debtortrans\n				SET alloc = \'-1767.17\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34109\''),('2019-08-17 09:47:13','jhairud','UPDATE config SET confvalue = \'2019-08-17\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-19 08:13:38','ebusiness','UPDATE config SET confvalue = \'2019-08-19\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-19 10:55:17','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								\'27505\',\n								\'TM020\',\n								\'R010\',\n								\'PO19107-002802\',\n								\'PO19107-002802\',\n								\'2019-08-19 10:55\',\n								\'DE\',\n								\'10\',\n								\'RFMF (FIJI MILITARY FORCES)\',\n								\'SUVA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-20\',\n								\'2019-08-20\',\n								\'2019-08-20\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-19 10:55:17','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					\'27505\',\n					\'LN\',\n					\'11.47\',\n					\'215\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-19\'\n				)'),('2019-08-19 10:55:35','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27004\')\n			WHERE orderno= \'27505\''),('2019-08-19 10:55:35','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									\'27004\',\n									10,\n									\'TM020\',\n									\'R010\',\n									\'2019-08-20\',\n									\'2019-08-19 10-55-35\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27505\',\n									\'2466.05\',\n									\'221.94\',\n									\'0\',\n									\'1\',\n									\'PO19107-002802\',\n									\'10\',\n									\'PO19107-002802\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-19 10:55:35','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34110\',\n									\'1\',\n									\'221.9445\')'),('2019-08-19 10:55:35','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 215,\n								actualdispatchdate = \'2019-08-20\',\n								completed=1\n							WHERE orderno = \'27505\'\n							AND orderlineno = \'0\''),('2019-08-19 10:55:35','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 215\n						WHERE locstock.stockid = \'LN\'\n						AND loccode = \'AN\''),('2019-08-19 10:55:35','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 (\'LN\',\n														10,\n														\'27004\',\n														\'AN\',\n														\'2019-08-20\',\n														\'TM020\',\n														\'R010\',\n														\'11.47\',\n														\'93\',\n														\'27505\',\n														\'-215\',\n														\'0\',\n														\'0.0000\',\n														\'-259255.32\',\n														\'\' )'),('2019-08-19 10:55:35','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56725\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-19 10:55:35','jhairud','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'2466.05\',\n										\'0\',\n										\'TM020\',\n										\'R010\',\n										\'215\',\n										\'0\',\n										\'LN\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LN\'\n								AND custbranch.debtorno = \'TM020\'\n								AND custbranch.branchcode=\'R010\''),('2019-08-19 10:55:35','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27004\',\n											\'2019-08-20\',\n											\'93\',\n											\'4100\',\n											\'TM020 - LN x 215 @ 11.47\',\n											\'-2466.05\')'),('2019-08-19 10:55:35','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27004\',\n										\'2019-08-20\',\n										\'93\',\n										\'1100\',\n										\'TM020\',\n										\'2687.99\')'),('2019-08-19 10:55:35','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27004\',\n											\'2019-08-20\',\n											\'93\',\n											\'2300\',\n											\'TM020\',\n											\'-221.94\')'),('2019-08-19 10:55:35','jhairud','UPDATE gltrans SET amount = amount - -0.0000000000003979039320256561\n								WHERE counterindex = \'122233\''),('2019-08-19 11:19:53','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								\'27506\',\n								\'TM051\',\n								\'F021\',\n								\'0151\',\n								\'0151\',\n								\'2019-08-19 11:19\',\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-08-20\',\n								\'2019-08-20\',\n								\'2019-08-20\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-19 11:19:53','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					\'27506\',\n					\'C16\',\n					\'17.50\',\n					\'5\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-19\'\n				)'),('2019-08-19 11:20:05','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27005\')\n			WHERE orderno= \'27506\''),('2019-08-19 11:20:05','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									\'27005\',\n									10,\n									\'TM051\',\n									\'F021\',\n									\'2019-08-20\',\n									\'2019-08-19 11-20-05\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27506\',\n									\'87.5\',\n									\'0\',\n									\'0\',\n									\'1\',\n									\'0151\',\n									\'10\',\n									\'0151\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-19 11:20:05','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34111\',\n									\'1\',\n									\'0\')'),('2019-08-19 11:20:05','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 5,\n								actualdispatchdate = \'2019-08-20\',\n								completed=1\n							WHERE orderno = \'27506\'\n							AND orderlineno = \'0\''),('2019-08-19 11:20:05','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 5\n						WHERE locstock.stockid = \'C16\'\n						AND loccode = \'AN\''),('2019-08-19 11:20:05','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 (\'C16\',\n														10,\n														\'27005\',\n														\'AN\',\n														\'2019-08-20\',\n														\'TM051\',\n														\'F021\',\n														\'17.5\',\n														\'93\',\n														\'27506\',\n														\'-5\',\n														\'0\',\n														\'0.0000\',\n														\'-198.2\',\n														\'\' )'),('2019-08-19 11:20:05','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56726\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-19 11:20:05','jhairud','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'87.5\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'5\',\n										\'0\',\n										\'C16\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C16\'\n								AND custbranch.debtorno = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-08-19 11:20:05','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27005\',\n											\'2019-08-20\',\n											\'93\',\n											\'4100\',\n											\'TM051 - C16 x 5 @ 17.5\',\n											\'-87.5\')'),('2019-08-19 11:20:05','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27005\',\n										\'2019-08-20\',\n										\'93\',\n										\'1100\',\n										\'TM051\',\n										\'87.5\')'),('2019-08-19 12:09: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								\'27507\',\n								\'TM074\',\n								\'P001\',\n								\'\',\n								\'Sports City\\\\r\\\\nSuva\\\\r\\\\n\',\n								\'2019-08-19 12:09\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'Sports City\',\n								\'Suva\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-20\',\n								\'2019-08-20\',\n								\'2019-08-20\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-19 12:09: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					\'27507\',\n					\'FF\',\n					\'17.00\',\n					\'15.6\',\n					\'0\',\n					\'Marlin Fillet\',\n					\'\',\n					\'2019-08-19\'\n				)'),('2019-08-19 12:10:18','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27006\')\n			WHERE orderno= \'27507\''),('2019-08-19 12:10:18','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									\'27006\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-20\',\n									\'2019-08-19 12-10-18\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27507\',\n									\'265.2\',\n									\'23.87\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-19 12:10:18','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34112\',\n									\'1\',\n									\'23.868\')'),('2019-08-19 12:10:18','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15.6,\n								actualdispatchdate = \'2019-08-20\',\n								completed=1\n							WHERE orderno = \'27507\'\n							AND orderlineno = \'0\''),('2019-08-19 12:10:18','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 15.6\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-19 12:10:18','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 (\'FF\',\n														10,\n														\'27006\',\n														\'AN\',\n														\'2019-08-20\',\n														\'TM074\',\n														\'P001\',\n														\'17\',\n														\'93\',\n														\'27507\',\n														\'-15.6\',\n														\'0\',\n														\'0.0000\',\n														\'-21084.02\',\n														\'Marlin Fillet\' )'),('2019-08-19 12:10:18','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56727\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-19 12:10:18','jhairud','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'265.2\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'15.6\',\n										\'0\',\n										\'FF\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FF\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-19 12:10:18','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27006\',\n											\'2019-08-20\',\n											\'93\',\n											\'4100\',\n											\'TM074 - FF x 15.6 @ 17\',\n											\'-265.2\')'),('2019-08-19 12:10:18','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27006\',\n										\'2019-08-20\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'289.07\')'),('2019-08-19 12:10:18','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27006\',\n											\'2019-08-20\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-23.87\')'),('2019-08-19 12:13:03','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								\'27508\',\n								\'TM074\',\n								\'P001\',\n								\'\',\n								\'\',\n								\'2019-08-19 12:13\',\n								\'DE\',\n								\'10\',\n								\'PIZZA KING\',\n								\'Sports City\',\n								\'Raiwaqa\',\n								\'Suva\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Jhairud\',\n								\'0\',\n								\'AN\',\n								\'2019-08-20\',\n								\'2019-08-20\',\n								\'2019-08-20\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-19 12:13:03','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					\'27508\',\n					\'FF\',\n					\'17.00\',\n					\'15.2\',\n					\'0\',\n					\'Marlin Fillet\',\n					\'\',\n					\'2019-08-19\'\n				)'),('2019-08-19 12:13:18','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27007\')\n			WHERE orderno= \'27508\''),('2019-08-19 12:13:18','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									\'27007\',\n									10,\n									\'TM074\',\n									\'P001\',\n									\'2019-08-20\',\n									\'2019-08-19 12-13-18\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27508\',\n									\'258.4\',\n									\'23.26\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-19 12:13:18','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34113\',\n									\'1\',\n									\'23.256\')'),('2019-08-19 12:13:18','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 15.2,\n								actualdispatchdate = \'2019-08-20\',\n								completed=1\n							WHERE orderno = \'27508\'\n							AND orderlineno = \'0\''),('2019-08-19 12:13:18','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 15.2\n						WHERE locstock.stockid = \'FF\'\n						AND loccode = \'AN\''),('2019-08-19 12:13:18','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 (\'FF\',\n														10,\n														\'27007\',\n														\'AN\',\n														\'2019-08-20\',\n														\'TM074\',\n														\'P001\',\n														\'17\',\n														\'93\',\n														\'27508\',\n														\'-15.2\',\n														\'0\',\n														\'0.0000\',\n														\'-21099.22\',\n														\'Marlin Fillet\' )'),('2019-08-19 12:13:18','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56728\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-19 12:13:18','jhairud','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'258.4\',\n										\'0\',\n										\'TM074\',\n										\'P001\',\n										\'15.2\',\n										\'0\',\n										\'FF\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FF\'\n								AND custbranch.debtorno = \'TM074\'\n								AND custbranch.branchcode=\'P001\''),('2019-08-19 12:13:18','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27007\',\n											\'2019-08-20\',\n											\'93\',\n											\'4100\',\n											\'TM074 - FF x 15.2 @ 17\',\n											\'-258.4\')'),('2019-08-19 12:13:18','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27007\',\n										\'2019-08-20\',\n										\'93\',\n										\'1100\',\n										\'TM074\',\n										\'281.66\')'),('2019-08-19 12:13:18','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27007\',\n											\'2019-08-20\',\n											\'93\',\n											\'2300\',\n											\'TM074\',\n											\'-23.26\')'),('2019-08-19 12:13:18','jhairud','UPDATE gltrans SET amount = amount - 0.00000000000004618527782440651\n								WHERE counterindex = \'122241\''),('2019-08-19 12:16:49','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								\'27509\',\n								\'TM051\',\n								\'F021\',\n								\'0152\',\n								\'\',\n								\'2019-08-19 12:16\',\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-08-20\',\n								\'2019-08-20\',\n								\'2019-08-20\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-19 12:16:49','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					\'27509\',\n					\'C001\',\n					\'6.88\',\n					\'50\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-19\'\n				)'),('2019-08-19 12:16:49','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					\'27509\',\n					\'C16\',\n					\'17.50\',\n					\'4\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-19\'\n				)'),('2019-08-19 12:17:09','jhairud','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27008\')\n			WHERE orderno= \'27509\''),('2019-08-19 12:17:09','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									\'27008\',\n									10,\n									\'TM051\',\n									\'F021\',\n									\'2019-08-20\',\n									\'2019-08-19 12-17-09\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27509\',\n									\'414\',\n									\'37.26\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Jhairud\')'),('2019-08-19 12:17:09','jhairud','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34114\',\n									\'1\',\n									\'37.26\')'),('2019-08-19 12:17:09','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 50,\n								actualdispatchdate = \'2019-08-20\',\n								completed=1\n							WHERE orderno = \'27509\'\n							AND orderlineno = \'0\''),('2019-08-19 12:17:09','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 50\n						WHERE locstock.stockid = \'C001\'\n						AND loccode = \'AN\''),('2019-08-19 12:17:09','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 (\'C001\',\n														10,\n														\'27008\',\n														\'AN\',\n														\'2019-08-20\',\n														\'TM051\',\n														\'F021\',\n														\'6.88\',\n														\'93\',\n														\'27509\',\n														\'-50\',\n														\'0\',\n														\'0.0000\',\n														\'-4385.4\',\n														\'\' )'),('2019-08-19 12:17:09','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56729\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-19 12:17:09','jhairud','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'344\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'50\',\n										\'0\',\n										\'C001\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C001\'\n								AND custbranch.debtorno = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-08-19 12:17:09','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27008\',\n											\'2019-08-20\',\n											\'93\',\n											\'4100\',\n											\'TM051 - C001 x 50 @ 6.88\',\n											\'-344\')'),('2019-08-19 12:17:09','jhairud','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4,\n								actualdispatchdate = \'2019-08-20\',\n								completed=1\n							WHERE orderno = \'27509\'\n							AND orderlineno = \'1\''),('2019-08-19 12:17:09','jhairud','UPDATE locstock\n						SET quantity = locstock.quantity - 4\n						WHERE locstock.stockid = \'C16\'\n						AND loccode = \'AN\''),('2019-08-19 12:17:09','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 (\'C16\',\n														10,\n														\'27008\',\n														\'AN\',\n														\'2019-08-20\',\n														\'TM051\',\n														\'F021\',\n														\'17.5\',\n														\'93\',\n														\'27509\',\n														\'-4\',\n														\'0\',\n														\'0.0000\',\n														\'-202.2\',\n														\'\' )'),('2019-08-19 12:17:09','jhairud','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56730\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-19 12:17:09','jhairud','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'70\',\n										\'0\',\n										\'TM051\',\n										\'F021\',\n										\'4\',\n										\'0\',\n										\'C16\',\n										custbranch.area,\n										1,\n										\'Jhairud\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'C16\'\n								AND custbranch.debtorno = \'TM051\'\n								AND custbranch.branchcode=\'F021\''),('2019-08-19 12:17:09','jhairud','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27008\',\n											\'2019-08-20\',\n											\'93\',\n											\'4100\',\n											\'TM051 - C16 x 4 @ 17.5\',\n											\'-70\')'),('2019-08-19 12:17:09','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27008\',\n										\'2019-08-20\',\n										\'93\',\n										\'1100\',\n										\'TM051\',\n										\'451.26\')'),('2019-08-19 12:17:09','jhairud','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27008\',\n											\'2019-08-20\',\n											\'93\',\n											\'2300\',\n											\'TM051\',\n											\'-37.26\')'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'340.08\'							    \n							WHERE transno = \'26867\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'1020.24\'							    \n							WHERE transno = \'26903\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'2040.48\'							    \n							WHERE transno = \'26893\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'680.16\'							    \n							WHERE transno = \'26725\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'350.11\'							    \n							WHERE transno = \'26857\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'350.11\'							    \n							WHERE transno = \'26843\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'350.11\'							    \n							WHERE transno = \'26852\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'680.16\'							    \n							WHERE transno = \'26864\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'5101.2\'							    \n							WHERE transno = \'26844\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'199.03\'							    \n							WHERE transno = \'26850\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'1700.4\'							    \n							WHERE transno = \'26865\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'1020.24\'							    \n							WHERE transno = \'26866\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'350.11\'							    \n							WHERE transno = \'26798\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'350.11\'							    \n							WHERE transno = \'26772\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'4298.08\'							    \n							WHERE transno = \'26759\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'340.08\'							    \n							WHERE transno = \'26745\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'340.08\'							    \n							WHERE transno = \'26709\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'320.02\'							    \n							WHERE transno = \'26695\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'680.16\'							    \n							WHERE transno = \'26694\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'2040.48\'							    \n							WHERE transno = \'26710\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'350.11\'							    \n							WHERE transno = \'26700\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'350.11\'							    \n							WHERE transno = \'26724\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'340.08\'							    \n							WHERE transno = \'26731\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'1020.24\'							    \n							WHERE transno = \'26723\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'5101.2\'							    \n							WHERE transno = \'26807\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'350.11\'							    \n							WHERE transno = \'26668\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'680.16\'							    \n							WHERE transno = \'26659\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'2720.64\'							    \n							WHERE transno = \'26667\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'1020.24\'							    \n							WHERE transno = \'26651\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'350.11\'							    \n							WHERE transno = \'26650\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'8026.98\'							    \n							WHERE transno = \'26633\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'350.11\'							    \n							WHERE transno = \'26619\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'1700.4\'							    \n							WHERE transno = \'26609\'\n							AND type = \'10\'\n			'),('2019-08-19 13:47:33','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'680.16\'							    \n							WHERE transno = \'26610\'\n							AND type = \'10\'\n			'),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'0.21\',\n								\'20757\',\n								\'25385\'\n							)'),('2019-08-19 14:11:55','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'886.37\',\n						settled = \'0\'\n						WHERE id = \'25385\''),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29523\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'365.15\',\n								\'20757\',\n								\'19311\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29524\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'289.94\',\n								\'20757\',\n								\'19310\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29525\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'665.34\',\n								\'20757\',\n								\'19439\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29526\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'73.03\',\n								\'20757\',\n								\'19473\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29527\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'292.12\',\n								\'20757\',\n								\'19474\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29528\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'904.86\',\n								\'20757\',\n								\'19537\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29529\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'73.03\',\n								\'20757\',\n								\'19538\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29530\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'219.09\',\n								\'20757\',\n								\'19539\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29531\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'157.41\',\n								\'20757\',\n								\'19624\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29532\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'799.58\',\n								\'20757\',\n								\'19676\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29533\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'219.09\',\n								\'20757\',\n								\'19677\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29534\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'36.52\',\n								\'20757\',\n								\'19773\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29535\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'219.09\',\n								\'20757\',\n								\'19774\'\n							)'),('2019-08-19 14:11:55','jhairud','DELETE FROM custallocns WHERE id = \'29536\''),('2019-08-19 14:11:55','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'424.31\',\n								\'20757\',\n								\'19797\'\n							)'),('2019-08-19 14:11:55','jhairud','UPDATE debtortrans\n				SET alloc = \'-4738.77\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'20757\''),('2019-08-19 16:38:36','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'525.33\',\n								\'33978\',\n								\'32324\'\n							)'),('2019-08-19 16:38:36','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'525.33\',\n						settled = \'1\'\n						WHERE id = \'32324\''),('2019-08-19 16:38:36','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'525.33\',\n								\'33978\',\n								\'32376\'\n							)'),('2019-08-19 16:38:36','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'525.33\',\n						settled = \'1\'\n						WHERE id = \'32376\''),('2019-08-19 16:38:36','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'170.04\',\n								\'33978\',\n								\'32427\'\n							)'),('2019-08-19 16:38:36','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'170.04\',\n						settled = \'1\'\n						WHERE id = \'32427\''),('2019-08-19 16:38:36','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'95.68\',\n								\'33978\',\n								\'32426\'\n							)'),('2019-08-19 16:38:36','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'95.68\',\n						settled = \'1\'\n						WHERE id = \'32426\''),('2019-08-19 16:38:36','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'239.2\',\n								\'33978\',\n								\'32485\'\n							)'),('2019-08-19 16:38:36','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'239.2\',\n						settled = \'1\'\n						WHERE id = \'32485\''),('2019-08-19 16:38:36','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'286.13\',\n								\'33978\',\n								\'32481\'\n							)'),('2019-08-19 16:38:36','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'286.13\',\n						settled = \'1\'\n						WHERE id = \'32481\''),('2019-08-19 16:38:36','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-19\',\n								\'397.76\',\n								\'33978\',\n								\'32551\'\n							)'),('2019-08-19 16:38:36','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'397.76\',\n						settled = \'0\'\n						WHERE id = \'32551\''),('2019-08-19 16:38:36','jhairud','UPDATE debtortrans\n				SET alloc = \'-2239.47\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'33978\''),('2019-08-20 09:12:19','jhairud','UPDATE config SET confvalue = \'2019-08-20\' WHERE confname=\'UpdateCurrencyRatesDaily\''),('2019-08-20 09:14:26','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						\'4691\',\n						12,\n						\'TM011\',\n						\'\',\n						\'2019-08-20\',\n						\'2019-08-20 09-14-26\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-3450.28\',\n						\'0\',\n						\'ANZ# 3559\'\n					)'),('2019-08-20 09:14:26','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-20\',\n						lastpaid=\'3450.28\'\n					WHERE debtorsmaster.debtorno=\'TM011\''),('2019-08-20 09:14:26','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			\'4691\',\n			\'1100\',\n			\'ANZ# 3559\',\n			\'1\',\n			\'1\',\n			\'2019-08-20\',\n			\'Cheque\',\n			\'3450.28\',\n			\'FJD\'\n		)'),('2019-08-20 09:14:26','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4691\',\n					\'2019-08-20\',\n					\'93\',\n					\'1100\',\n					\'ANZ# 3559\',\n					\'3450.28\'\n				)'),('2019-08-20 09:14:26','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4691\',\n							\'2019-08-20\',\n							\'93\',\n							\'1100\',\n							\'ANZ# 3559\',\n							\'-3450.28\'\n							)'),('2019-08-20 09:15:30','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						\'4692\',\n						12,\n						\'TM051\',\n						\'\',\n						\'2019-08-20\',\n						\'2019-08-20 09-15-30\',\n						\'93\',\n						\'Cheque \',\n						\'\',\n						\'1\',\n						\'-1766.56\',\n						\'0\',\n						\'WBC# 1705\'\n					)'),('2019-08-20 09:15:30','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-20\',\n						lastpaid=\'1766.56\'\n					WHERE debtorsmaster.debtorno=\'TM051\''),('2019-08-20 09:15:30','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			\'4692\',\n			\'1100\',\n			\'WBC# 1705\',\n			\'1\',\n			\'1\',\n			\'2019-08-20\',\n			\'Cheque\',\n			\'1766.56\',\n			\'FJD\'\n		)'),('2019-08-20 09:15:30','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4692\',\n					\'2019-08-20\',\n					\'93\',\n					\'1100\',\n					\'WBC# 1705\',\n					\'1766.56\'\n				)'),('2019-08-20 09:15:30','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4692\',\n							\'2019-08-20\',\n							\'93\',\n							\'1100\',\n							\'WBC# 1705\',\n							\'-1766.56\'\n							)'),('2019-08-20 09:16:40','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						\'4693\',\n						12,\n						\'TM079\',\n						\'\',\n						\'2019-08-20\',\n						\'2019-08-20 09-16-40\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-3000\',\n						\'0\',\n						\'DCR - 09-08-19\'\n					)'),('2019-08-20 09:16:40','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-20\',\n						lastpaid=\'3000.00\'\n					WHERE debtorsmaster.debtorno=\'TM079\''),('2019-08-20 09:16:40','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			\'4693\',\n			\'1100\',\n			\'DCR - 09-08-19\',\n			\'1\',\n			\'1\',\n			\'2019-08-20\',\n			\'Direct Credit\',\n			\'3000\',\n			\'FJD\'\n		)'),('2019-08-20 09:16:40','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4693\',\n					\'2019-08-20\',\n					\'93\',\n					\'1100\',\n					\'DCR - 09-08-19\',\n					\'3000\'\n				)'),('2019-08-20 09:16:40','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4693\',\n							\'2019-08-20\',\n							\'93\',\n							\'1100\',\n							\'DCR - 09-08-19\',\n							\'-3000\'\n							)'),('2019-08-20 09:17:40','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						\'4694\',\n						12,\n						\'94\',\n						\'\',\n						\'2019-08-20\',\n						\'2019-08-20 09-17-40\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-938.03\',\n						\'0\',\n						\'DCR - 16-08-19\'\n					)'),('2019-08-20 09:17:40','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-20\',\n						lastpaid=\'938.03\'\n					WHERE debtorsmaster.debtorno=\'94\''),('2019-08-20 09:17:40','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			\'4694\',\n			\'1100\',\n			\'DCR - 16-08-19\',\n			\'1\',\n			\'1\',\n			\'2019-08-20\',\n			\'Direct Credit\',\n			\'938.03\',\n			\'FJD\'\n		)'),('2019-08-20 09:17:40','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4694\',\n					\'2019-08-20\',\n					\'93\',\n					\'1100\',\n					\'DCR - 16-08-19\',\n					\'938.03\'\n				)'),('2019-08-20 09:17:40','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4694\',\n							\'2019-08-20\',\n							\'93\',\n							\'1100\',\n							\'DCR - 16-08-19\',\n							\'-938.03\'\n							)'),('2019-08-20 09:18: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						\'4695\',\n						12,\n						\'TM087\',\n						\'\',\n						\'2019-08-20\',\n						\'2019-08-20 09-18-51\',\n						\'93\',\n						\'Direct Credit \',\n						\'\',\n						\'1\',\n						\'-3901.82\',\n						\'0\',\n						\'DCR - 16-08-19\'\n					)'),('2019-08-20 09:18:51','jhairud','UPDATE debtorsmaster\n						SET lastpaiddate = \'2019-08-20\',\n						lastpaid=\'3901.82\'\n					WHERE debtorsmaster.debtorno=\'TM087\''),('2019-08-20 09:18: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			\'4695\',\n			\'1100\',\n			\'DCR - 16-08-19\',\n			\'1\',\n			\'1\',\n			\'2019-08-20\',\n			\'Direct Credit\',\n			\'3901.82\',\n			\'FJD\'\n		)'),('2019-08-20 09:18:51','jhairud','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n				VALUES (\n					12,\n					\'4695\',\n					\'2019-08-20\',\n					\'93\',\n					\'1100\',\n					\'DCR - 16-08-19\',\n					\'3901.82\'\n				)'),('2019-08-20 09:18:51','jhairud','INSERT INTO gltrans ( type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n						VALUES (\n							12,\n							\'4695\',\n							\'2019-08-20\',\n							\'93\',\n							\'1100\',\n							\'DCR - 16-08-19\',\n							\'-3901.82\'\n							)'),('2019-08-20 09:35:41','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-20\',\n								\'216.91\',\n								\'34116\',\n								\'33774\'\n							)'),('2019-08-20 09:35:41','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'374.96\',\n						settled = \'1\'\n						WHERE id = \'33774\''),('2019-08-20 09:35:41','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-20\',\n								\'110.98\',\n								\'34116\',\n								\'33780\'\n							)'),('2019-08-20 09:35:41','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'110.98\',\n						settled = \'1\'\n						WHERE id = \'33780\''),('2019-08-20 09:35:41','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-20\',\n								\'533.01\',\n								\'34116\',\n								\'33835\'\n							)'),('2019-08-20 09:35:41','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'533.01\',\n						settled = \'1\'\n						WHERE id = \'33835\''),('2019-08-20 09:35:41','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-20\',\n								\'664.57\',\n								\'34116\',\n								\'33905\'\n							)'),('2019-08-20 09:35:41','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'664.57\',\n						settled = \'1\'\n						WHERE id = \'33905\''),('2019-08-20 09:35:41','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-20\',\n								\'241.09\',\n								\'34116\',\n								\'33968\'\n							)'),('2019-08-20 09:35:41','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'241.09\',\n						settled = \'0\'\n						WHERE id = \'33968\''),('2019-08-20 09:35:41','jhairud','UPDATE debtortrans\n				SET alloc = \'-1766.56\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34116\''),('2019-08-20 09:36:05','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-20\',\n								\'3000.00\',\n								\'34117\',\n								\'27124\'\n							)'),('2019-08-20 09:36:05','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'17246.51\',\n						settled = \'0\'\n						WHERE id = \'27124\''),('2019-08-20 09:36:05','jhairud','UPDATE debtortrans\n				SET alloc = \'-3000\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34117\''),('2019-08-20 09:36:30','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-20\',\n								\'1919.11\',\n								\'34119\',\n								\'33530\'\n							)'),('2019-08-20 09:36:30','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1919.11\',\n						settled = \'1\'\n						WHERE id = \'33530\''),('2019-08-20 09:36:30','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-20\',\n								\'49.05\',\n								\'34119\',\n								\'33532\'\n							)'),('2019-08-20 09:36:30','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'49.05\',\n						settled = \'1\'\n						WHERE id = \'33532\''),('2019-08-20 09:36:30','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-20\',\n								\'1315.85\',\n								\'34119\',\n								\'33576\'\n							)'),('2019-08-20 09:36:30','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'1315.85\',\n						settled = \'1\'\n						WHERE id = \'33576\''),('2019-08-20 09:36:30','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-20\',\n								\'617.81\',\n								\'34119\',\n								\'33662\'\n							)'),('2019-08-20 09:36:30','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'617.81\',\n						settled = \'1\'\n						WHERE id = \'33662\''),('2019-08-20 09:36:30','jhairud','UPDATE debtortrans\n				SET alloc = \'-3901.82\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34119\''),('2019-08-20 09:37:49','jhairud','INSERT INTO\n								custallocns (\n								datealloc,\n								amt,\n								transid_allocfrom,\n								transid_allocto\n							) VALUES (\n								\'2019-08-20\',\n								\'938.03\',\n								\'34118\',\n								\'33700\'\n							)'),('2019-08-20 09:37:49','jhairud','UPDATE debtortrans\n						SET diffonexch=\'0\',\n						alloc = \'938.03\',\n						settled = \'0\'\n						WHERE id = \'33700\''),('2019-08-20 09:37:49','jhairud','UPDATE debtortrans\n				SET alloc = \'-938.03\',\n				diffonexch = \'0\',\n				settled=\'1\'\n				WHERE id = \'34118\''),('2019-08-20 09:49:07','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'375.66\'							    \n							WHERE transno = \'26381\'\n							AND type = \'10\'\n			'),('2019-08-20 09:49:07','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'250.05\'							    \n							WHERE transno = \'26804\'\n							AND type = \'10\'\n			'),('2019-08-20 09:49:07','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'3100.83\'							    \n							WHERE transno = \'26885\'\n							AND type = \'10\'\n			'),('2019-08-20 09:51:31','jhairud','UPDATE debtortrans\n							SET settled = 1,\n							    alloc = \'97.85\'							    \n							WHERE transno = \'26602\'\n							AND type = \'10\'\n			'),('2019-08-20 11:23: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								\'27510\',\n								\'TM092\',\n								\'T031\',\n								\'448156madras\',\n								\'\',\n								\'2019-08-20 11:23\',\n								\'DE\',\n								\'10\',\n								\'TAPPOOS LTD\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-20 11:23: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					\'27510\',\n					\'LPP\',\n					\'19.27\',\n					\'30\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:23: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					\'27510\',\n					\'FISH\',\n					\'12.50\',\n					\'10\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:24:06','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27009\')\n			WHERE orderno= \'27510\''),('2019-08-20 11:24:06','zaabed','INSERT INTO debtortrans (transno,\n									type,\n									debtorno,\n									branchcode,\n									trandate,\n									inputdate,\n									prd,\n									reference,\n									tpe,\n									order_,\n									ovamount,\n									ovgst,\n									ovfreight,\n									rate,\n									invtext,\n									shipvia,\n									consignment,\n									packages,\n									entered_by )\n								VALUES (\n									\'27009\',\n									10,\n									\'TM092\',\n									\'T031\',\n									\'2019-08-21\',\n									\'2019-08-20 11-24-06\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27510\',\n									\'703.1\',\n									\'52.03\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-20 11:24:06','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34120\',\n									\'1\',\n									\'52.029\')'),('2019-08-20 11:24:06','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 30,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27510\'\n							AND orderlineno = \'0\''),('2019-08-20 11:24:06','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 30\n						WHERE locstock.stockid = \'LPP\'\n						AND loccode = \'AN\''),('2019-08-20 11:24:06','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'LPP\',\n														10,\n														\'27009\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM092\',\n														\'T031\',\n														\'19.27\',\n														\'93\',\n														\'27510\',\n														\'-30\',\n														\'0\',\n														\'0.0000\',\n														\'-58963.52\',\n														\'\' )'),('2019-08-20 11:24:06','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56731\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:24:06','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'578.1\',\n										\'0\',\n										\'TM092\',\n										\'T031\',\n										\'30\',\n										\'0\',\n										\'LPP\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LPP\'\n								AND custbranch.debtorno = \'TM092\'\n								AND custbranch.branchcode=\'T031\''),('2019-08-20 11:24:06','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27009\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM092 - LPP x 30 @ 19.27\',\n											\'-578.1\')'),('2019-08-20 11:24:06','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 10,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27510\'\n							AND orderlineno = \'1\''),('2019-08-20 11:24:06','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 10\n						WHERE locstock.stockid = \'FISH\'\n						AND loccode = \'AN\''),('2019-08-20 11:24:06','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'FISH\',\n														10,\n														\'27009\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM092\',\n														\'T031\',\n														\'12.5\',\n														\'93\',\n														\'27510\',\n														\'-10\',\n														\'0\',\n														\'0.0000\',\n														\'-45290.9401\',\n														\'\' )'),('2019-08-20 11:24:06','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56732\',\n											\'1\',\n											\'0\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:24:06','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'125\',\n										\'0\',\n										\'TM092\',\n										\'T031\',\n										\'10\',\n										\'0\',\n										\'FISH\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'FISH\'\n								AND custbranch.debtorno = \'TM092\'\n								AND custbranch.branchcode=\'T031\''),('2019-08-20 11:24:06','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27009\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM092 - FISH x 10 @ 12.5\',\n											\'-125\')'),('2019-08-20 11:24:06','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27009\',\n										\'2019-08-21\',\n										\'93\',\n										\'1100\',\n										\'TM092\',\n										\'755.13\')'),('2019-08-20 11:24:06','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27009\',\n											\'2019-08-21\',\n											\'93\',\n											\'2300\',\n											\'TM092\',\n											\'-52.03\')'),('2019-08-20 11:25:14','zaabed','INSERT INTO salesorders (\n								orderno,\n								debtorno,\n								branchcode,\n								customerref,\n								comments,\n								orddate,\n								ordertype,\n								shipvia,\n								deliverto,\n								deladd1,\n								deladd2,\n								deladd3,\n								deladd4,\n								deladd5,\n								deladd6,\n								contactphone,\n								contactemail,\n								salesperson,\n								freightcost,\n								fromstkloc,\n								deliverydate,\n								quotedate,\n								confirmeddate,\n								quotation,\n								deliverblind)\n							VALUES (\n								\'27511\',\n								\'TM092\',\n								\'T031\',\n								\'448182nypk\',\n								\'\',\n								\'2019-08-20 11:25\',\n								\'DE\',\n								\'10\',\n								\'TAPPOOS LTD\',\n								\'delivery\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-20 11:25:14','zaabed','INSERT INTO salesorderdetails (\n											orderlineno,\n											orderno,\n											stkcode,\n											unitprice,\n											quantity,\n											discountpercent,\n											narrative,\n											poline,\n											itemdue)\n										VALUES (\n					\'0\',\n					\'27511\',\n					\'LM\',\n					\'17.43\',\n					\'50\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:25:19','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27010\')\n			WHERE orderno= \'27511\''),('2019-08-20 11:25:19','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									\'27010\',\n									10,\n									\'TM092\',\n									\'T031\',\n									\'2019-08-21\',\n									\'2019-08-20 11-25-19\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27511\',\n									\'871.5\',\n									\'78.44\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-20 11:25:19','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34121\',\n									\'1\',\n									\'78.435\')'),('2019-08-20 11:25:19','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 50,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27511\'\n							AND orderlineno = \'0\''),('2019-08-20 11:25:19','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 50\n						WHERE locstock.stockid = \'LM\'\n						AND loccode = \'AN\''),('2019-08-20 11:25:19','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														\'27010\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM092\',\n														\'T031\',\n														\'17.43\',\n														\'93\',\n														\'27511\',\n														\'-50\',\n														\'0\',\n														\'0.0000\',\n														\'-32098.78\',\n														\'\' )'),('2019-08-20 11:25:19','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56733\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:25:19','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'871.5\',\n										\'0\',\n										\'TM092\',\n										\'T031\',\n										\'50\',\n										\'0\',\n										\'LM\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'LM\'\n								AND custbranch.debtorno = \'TM092\'\n								AND custbranch.branchcode=\'T031\''),('2019-08-20 11:25:19','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27010\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM092 - LM x 50 @ 17.43\',\n											\'-871.5\')'),('2019-08-20 11:25:19','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27010\',\n										\'2019-08-21\',\n										\'93\',\n										\'1100\',\n										\'TM092\',\n										\'949.94\')'),('2019-08-20 11:25:19','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27010\',\n											\'2019-08-21\',\n											\'93\',\n											\'2300\',\n											\'TM092\',\n											\'-78.44\')'),('2019-08-20 11:28: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								\'27512\',\n								\'TM013\',\n								\'41\',\n								\'00000350\',\n								\'\',\n								\'2019-08-20 11:28\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-20 11:28: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					\'27512\',\n					\'RS\',\n					\'12\',\n					\'4.3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:28: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					\'27512\',\n					\'SF500G\',\n					\'16.95\',\n					\'3\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:28: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					\'27512\',\n					\'SS\',\n					\'17.24\',\n					\'2.95\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:28: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					\'27512\',\n					\'BTS\',\n					\'14\',\n					\'6.75\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:28:43','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27011\')\n			WHERE orderno= \'27512\''),('2019-08-20 11:28: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									\'27011\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-21\',\n									\'2019-08-20 11-28-43\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27512\',\n									\'247.81\',\n									\'22.3\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-20 11:28:43','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34122\',\n									\'1\',\n									\'22.30272\')'),('2019-08-20 11:28:43','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 4.3,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27512\'\n							AND orderlineno = \'0\''),('2019-08-20 11:28:43','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 4.3\n						WHERE locstock.stockid = \'RS\'\n						AND loccode = \'AN\''),('2019-08-20 11:28: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 (\'RS\',\n														10,\n														\'27011\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27512\',\n														\'-4.3\',\n														\'0\',\n														\'0.0000\',\n														\'-19876.29\',\n														\'\' )'),('2019-08-20 11:28:43','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56734\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:28:43','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'51.6\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'4.3\',\n										\'0\',\n										\'RS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'RS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-20 11:28:43','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27011\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM013 - RS x 4.3 @ 12\',\n											\'-51.6\')'),('2019-08-20 11:28:43','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27512\'\n							AND orderlineno = \'1\''),('2019-08-20 11:28:43','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3\n						WHERE locstock.stockid = \'SF500G\'\n						AND loccode = \'AN\''),('2019-08-20 11:28: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 (\'SF500G\',\n														10,\n														\'27011\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM013\',\n														\'41\',\n														\'16.95\',\n														\'93\',\n														\'27512\',\n														\'-3\',\n														\'0\',\n														\'0.0000\',\n														\'-9589.081\',\n														\'\' )'),('2019-08-20 11:28:43','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56735\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:28:43','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'50.85\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'3\',\n										\'0\',\n										\'SF500G\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SF500G\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-20 11:28:43','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27011\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SF500G x 3 @ 16.95\',\n											\'-50.85\')'),('2019-08-20 11:28:43','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 2.95,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27512\'\n							AND orderlineno = \'2\''),('2019-08-20 11:28:43','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 2.95\n						WHERE locstock.stockid = \'SS\'\n						AND loccode = \'AN\''),('2019-08-20 11:28: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 (\'SS\',\n														10,\n														\'27011\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM013\',\n														\'41\',\n														\'17.24\',\n														\'93\',\n														\'27512\',\n														\'-2.95\',\n														\'0\',\n														\'0.0000\',\n														\'-6709.2\',\n														\'\' )'),('2019-08-20 11:28:43','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56736\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:28:43','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'50.86\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'2.95\',\n										\'0\',\n										\'SS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'SS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-20 11:28:43','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27011\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM013 - SS x 2.95 @ 17.24\',\n											\'-50.86\')'),('2019-08-20 11:28:43','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 6.75,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27512\'\n							AND orderlineno = \'3\''),('2019-08-20 11:28:43','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 6.75\n						WHERE locstock.stockid = \'BTS\'\n						AND loccode = \'AN\''),('2019-08-20 11:28: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 (\'BTS\',\n														10,\n														\'27011\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM013\',\n														\'41\',\n														\'14\',\n														\'93\',\n														\'27512\',\n														\'-6.75\',\n														\'0\',\n														\'0.0000\',\n														\'-5507.46\',\n														\'\' )'),('2019-08-20 11:28:43','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56737\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),('2019-08-20 11:28:43','zaabed','INSERT INTO salesanalysis (typeabbrev,\n												periodno,\n												amt,\n												cost,\n												cust,\n												custbranch,\n												qty,\n												disc,\n												stockid,\n												area,\n												budgetoractual,\n												salesperson,\n												stkcategory )\n								SELECT \'DE\',\n										\'93\',\n										\'94.5\',\n										\'0\',\n										\'TM013\',\n										\'41\',\n										\'6.75\',\n										\'0\',\n										\'BTS\',\n										custbranch.area,\n										1,\n										\'Zaabed Mohummed\',\n										stockmaster.categoryid\n								FROM stockmaster, custbranch\n								WHERE stockmaster.stockid = \'BTS\'\n								AND custbranch.debtorno = \'TM013\'\n								AND custbranch.branchcode=\'41\''),('2019-08-20 11:28:43','zaabed','INSERT INTO gltrans (type,\n												typeno,\n												trandate,\n												periodno,\n												account,\n												narrative,\n												amount )\n										VALUES (\n											10,\n											\'27011\',\n											\'2019-08-21\',\n											\'93\',\n											\'4100\',\n											\'TM013 - BTS x 6.75 @ 14\',\n											\'-94.5\')'),('2019-08-20 11:28:43','zaabed','INSERT INTO gltrans (type,\n										typeno,\n										trandate,\n										periodno,\n										account,\n										narrative,\n										amount)\n									VALUES (\n										10,\n										\'27011\',\n										\'2019-08-21\',\n										\'93\',\n										\'1100\',\n										\'TM013\',\n										\'270.11\')'),('2019-08-20 11:28:43','zaabed','INSERT INTO gltrans (type,\n											typeno,\n											trandate,\n											periodno,\n											account,\n											narrative,\n											amount)\n										VALUES (\n											10,\n											\'27011\',\n											\'2019-08-21\',\n											\'93\',\n											\'2300\',\n											\'TM013\',\n											\'-22.3\')'),('2019-08-20 11:28:43','zaabed','UPDATE gltrans SET amount = amount - 0.000000000000010658141036401503\n								WHERE counterindex = \'122265\''),('2019-08-20 11:35:55','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								\'27513\',\n								\'TM013\',\n								\'41\',\n								\'00000484\',\n								\'\',\n								\'2019-08-20 11:35\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-20 11:35:55','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					\'27513\',\n					\'RDS\',\n					\'12\',\n					\'3.2\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:35:55','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					\'27513\',\n					\'RS\',\n					\'12\',\n					\'4.25\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:35:55','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					\'27513\',\n					\'SF500G\',\n					\'16.95\',\n					\'3.7\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:35:55','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					\'27513\',\n					\'SS\',\n					\'17.24\',\n					\'2.8\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:35:55','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					\'27513\',\n					\'BTS\',\n					\'14\',\n					\'6.15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:39:03','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								\'27514\',\n								\'TM013\',\n								\'41\',\n								\'484\',\n								\'\',\n								\'2019-08-20 11:39\',\n								\'DE\',\n								\'10\',\n								\'KUNDAN SINGH\',\n								\'TAMAVUA\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'\',\n								\'Zaabed Mohummed\',\n								\'0\',\n								\'AN\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'2019-08-21\',\n								\'0\',\n								\'1\'\n								)'),('2019-08-20 11:39:03','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					\'27514\',\n					\'RDS\',\n					\'12\',\n					\'3.2\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:39:03','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					\'27514\',\n					\'RS\',\n					\'12\',\n					\'4.25\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:39:03','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					\'27514\',\n					\'SF500G\',\n					\'16.95\',\n					\'3.7\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:39:03','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					\'27514\',\n					\'SS\',\n					\'17.24\',\n					\'2.8\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:39:03','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					\'27514\',\n					\'BTS\',\n					\'14\',\n					\'6.15\',\n					\'0\',\n					\'\',\n					\'\',\n					\'2019-08-20\'\n				)'),('2019-08-20 11:39:13','zaabed','UPDATE salesorders\n			SET comments = CONCAT(comments,\' Inv \',\'27012\')\n			WHERE orderno= \'27514\''),('2019-08-20 11:39: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									\'27012\',\n									10,\n									\'TM013\',\n									\'41\',\n									\'2019-08-21\',\n									\'2019-08-20 11-39-13\',\n									\'93\',\n									\'\',\n									\'DE\',\n									\'27514\',\n									\'286.49\',\n									\'25.78\',\n									\'0\',\n									\'1\',\n									\'\',\n									\'10\',\n									\'\',\n									\'1\',\n									\'Zaabed Mohummed\')'),('2019-08-20 11:39:13','zaabed','INSERT INTO debtortranstaxes (debtortransid,\n											taxauthid,\n											taxamount)\n								VALUES (\'34123\',\n									\'1\',\n									\'25.78383\')'),('2019-08-20 11:39:13','zaabed','UPDATE salesorderdetails\n							SET qtyinvoiced = qtyinvoiced + 3.2,\n								actualdispatchdate = \'2019-08-21\',\n								completed=1\n							WHERE orderno = \'27514\'\n							AND orderlineno = \'0\''),('2019-08-20 11:39:13','zaabed','UPDATE locstock\n						SET quantity = locstock.quantity - 3.2\n						WHERE locstock.stockid = \'RDS\'\n						AND loccode = \'AN\''),('2019-08-20 11:39:13','zaabed','INSERT INTO stockmoves (stockid,\n														type,\n														transno,\n														loccode,\n														trandate,\n														debtorno,\n														branchcode,\n														price,\n														prd,\n														reference,\n														qty,\n														discountpercent,\n														standardcost,\n														newqoh,\n														narrative )\n													VALUES (\'RDS\',\n														10,\n														\'27012\',\n														\'AN\',\n														\'2019-08-21\',\n														\'TM013\',\n														\'41\',\n														\'12\',\n														\'93\',\n														\'27514\',\n														\'-3.2\',\n														\'0\',\n														\'0.0000\',\n														\'-929.39\',\n														\'\' )'),('2019-08-20 11:39:13','zaabed','INSERT INTO stockmovestaxes (stkmoveno,\n													taxauthid,\n													taxrate,\n													taxcalculationorder,\n													taxontax)\n										VALUES (\'56738\',\n											\'1\',\n											\'0.09\',\n											\'1\',\n											\'0\')'),