INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties;
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 07:30:00";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 11:00:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 11:00:01', '1', '', '197.56.110.114', '', 'DESKTOP');
UPDATE programsettings SET companyname = 'GT4', address = 'المنصورة', specializtion = 'jh', phone = '01002019235', faxnumber = '0502232923', email = 'mrabozied@gt4it.com', website = 'www.gt4host.com', logo = '471502e62c0be89a8d90663028144a83.jpg', roundnumbers = '0', saveprinting = '1', deptprinting = '1', printingpapersize = '0', userid = '1', showPreviousPrice = '0', parcode = '0', priceing = '0', lastprice = '0', searchvalue = '1', updateproductprice = '0', allowfinsldelete = '0', updateclientprice = '0', `partition` = '0', taxcard = '332', commercialregistration = '3213123312', costcenter = '1', clinic = '1', workshop = '1', transport = '1', manufacturing = '0', masterCopy = '0' , dailyentrydate = '2020-04-18' ,updatefiledate = '2021-11-22',workerbetweenstores = '1',workshoptimeout = '24',drivertimeout = '3',currancy = 'جنيه',serial='9c2d4cf4cf5d4e24d5070164705832c3a5d1287f641a2960e48e04ae57a2ad0a5441322ca7cf34efd63003fdb348adbd0b61197c7c87d8dd5bc298c352482bc6',allowdateedit = '0', clientcode = '1' ,clientserial = '1',timezone = 'Africa/Cairo' , expiredate ='1' , production ='1' , description='1' , service ='1' , date='1' , limitamount = '0' , measuringunit = '1' , print_amount = '0' , billid = '0' , precentages = '1' , realprice = '1' ,delegate_seller = '0' , storeserial = '1' ,clientfieldrequired ='0' , clientcodname='0' , colortype = '0' , nakdyOnly = '0' , nakdyKashf = '0' , discount_pres_direct = '0' , general_discount = '0' , sells_return = '0' ,scunitname ='0',vatValue = '0.00',syncstructure = '1',showPrevPrices = '0',isOpticProg='1',reportsPlusHours = '2' , showM5zon = '1',restaurantStoreId = '1',restuarantPrintTimeout = '8',sumSameProductForStore = '0', editAllPrice = '1', isCafe = '0' ,isRestaurent = '0' ,productDays = '0',thereIsRestTax = '0',restTaxVal = '0',restPrintLang = '0',taxNameFlag = '0',parcodeDigits = '5' ,specializedParcodeDigits = '7', clientDefaultDebtLimit = '10000' , clientDefaultDebtLimitControl = '0',usedParcode = '0' ,productbycodeimage = '' ,commentClient='تعليق على العميل ',Inventoryevaluation='first',Profitevaluation='first' , delivery='-2',premiums = '0',operationnumEdit = '0',noOfDecimalPlaces = '2',unReviewBills = '0', unReviewBillsPass = '123',billReviewNote = '',tamweenBakery = '0',three_months = '0',six_months = '0',twelve_months = '0',eighteen_months = '0',twentyfour_months = '0',thirty_months = '0',sixthirty_months = '0',fortytwo_months = '0',fortyeight_months = '0',mandobCollectionRatio='0',takeAwayClient = '0',restaurantServiceOn = ',-2,-1,1,',earlyrepayment = '0',visaPay = '0',headerPrint='',headerPrintSand='',printSand='0',makeDailyEntry='0',clientShowTawla='0',billRest='1',suppIsClientToo='0',isCarBill='0',expensesproduct='1',projectshownew='1',showparcode='0',changeBuyPriceChangeSellInBuyBillCtrl = '0',changeBuyPriceChangeSellInProductCtrl = '0',inventoryvaluation = '1',showBillCollectionSearch='0' WHERE programsettingsid = '1';
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 07:30:01";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 07:33:07";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 11:03:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 11:03:07', '1', '', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:02:18";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 11:32:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 11:32:18', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '1483';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('564', '1', '421', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '421.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:41:48";
UPDATE storedetail SET  productquantity = '0', userid = null, storedetaildate = '2021-11-22' WHERE storedetailid = '1483';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('564', '1', '421', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '421.00', '0', null, '2021-11-22','0','0');
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties;
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:42:12";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:12:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 12:12:12', '1', '', '197.56.110.114', '', 'DESKTOP');
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:42:12";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties;
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:44:31";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:14:31", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 12:14:31', '4', '', '102.41.168.224', '', 'DESKTOP');
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:44:31";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:44:39";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:14:39", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:14:39', '4', 'addsellBill', '102.41.168.224', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:45:31";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:15:31", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:15:31', '4', 'addAndRetuen', '102.41.168.224', '', 'DESKTOP');

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 0619b6d8fd72db
-- ----------------------------------------------------------------------------------------------------

BEGIN;
INSERT INTO sellbill (sellbilldate, sellbillserial, sellbillclientid, sellbilltotaldeptbefor, sellbilltotaldeptafter, sellbilldiscount, sellbilldiscounttype, sellbilltotalbill, sellbillaftertotalbill, sellbilltotalpayed, sellbillfinalbill, sellbillstoreid, sellbillsysdate,comment, userid, conditions, sellbillclientname, sellbillsaveid, sellbildirectpayment, billnameid, sellerid, tempclientName, sellQuantity,tax ,carnumber, cartype, carchase, carmotor,costcenterid,dailyentryid,obygyVisitId,onlineOrderId,delbyuserid,delivery,totalafterdelivery,billReservation,billReservationDate,webApiId,visaAccountId,cashPayed,visaPayed,isBankAccountTransfer,extraDiscountPer,extraDiscountVal,taxOfDiscountPer,taxOfDiscountVal,taxBillNumber,collectionType,collectionDate) VALUES ('2021-11-22 12:14:39', '0619b6d8fd72db', '1', '0.00', '0', '0', '1', '450', '450', '450', '0', '7', '2021-11-22 12:15:31', '', '4', '0', 'نقدي', '7', '0', '3', '0', 'نقدي', '2' ,'0','','','','','-1','0','0','0','0','0','450','0','','0','0','450','0','0','0','0','0','0','0','0','');
UPDATE client SET  clientdebt = '0', userid = '4' WHERE clientid = '1';
INSERT INTO clientdebtchange (clientid, clientdebtchangebefore, clientdebtchangeamount, clientdebtchangetype, processname, clientdebtchangemodelid, clientdebtchangeafter, clientdebtchangedate, userid, tablename, comment, totalOperationCost,discount,reciptid,dailyentryid , num , billid , paytype, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor ) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','64', '0', '2021-11-22 12:15:31', '4', 'sellbillController.php', 'اضافة فاتورة مبيعات', '450', '0', null, '0', null, null,'', '0','1','1','0','1');
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+1 where id = 1910;
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity) VALUES ('150','00565', '64', '1', '565', '1', '230', '230', '0', '', '0', '2021-11-22 12:15:31', '565', '0.00', '0', '7','0','','','0','0','0','0','0','0','0','0','','1910-1,');
UPDATE sellbilldetail SET  lastbuyprice = 150.00 , meanbuyprice = 150.00, lastbuyprice_withDiscount = 150.00, meanbuyprice_withDiscount = 150.00
                where sellbilldetailid = 154;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet)
                    VALUES (565, '2021-11-22', 230, 150, 150
                    , 150, 150, 150, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+230, sellCostBuyPrice =sellCostBuyPrice+150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                        , netQuantity = netQuantity+1
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice)
                    VALUES (7, '2021-11-22', 230, 150, 150
                    , 150, 150, 150, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+230, sellCostBuyPrice =sellCostBuyPrice+150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
UPDATE storedetail SET  productquantity = '30', userid = '4', storedetaildate = '2021-11-22 12:15:31' WHERE storedetailid = '1514';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('565', '7', '1', '1', '64', 'اضافة فاتورة مبيعات', 'sellbillController.php', '31.00', '30', '4', '2021-11-22 12:15:31','0','0');
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity) VALUES ('210','00465', '64', '1', '465', '1', '220', '220', '0', '', '0', '2021-11-22 12:15:31', '465', '0.00', '0', '7','0','','','0','0','0','0','0','0','0','0','','');
UPDATE sellbilldetail SET  lastbuyprice = 210.00 , meanbuyprice = 210.00, lastbuyprice_withDiscount = 210.00, meanbuyprice_withDiscount = 210.00
                where sellbilldetailid = 155;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet)
                    VALUES (465, '2021-11-22', 220, 210, 210
                    , 210, 210, 210, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+220, sellCostBuyPrice =sellCostBuyPrice+210
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+210, sellCostMeanBuyPrice = sellCostMeanBuyPrice+210
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+210, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+210
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                        , netQuantity = netQuantity+1
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice)
                    VALUES (7, '2021-11-22', 220, 210, 210
                    , 210, 210, 210, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+220, sellCostBuyPrice =sellCostBuyPrice+210
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+210, sellCostMeanBuyPrice = sellCostMeanBuyPrice+210
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+210, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+210
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
UPDATE storedetail SET  productquantity = '10', userid = '4', storedetaildate = '2021-11-22 12:15:31' WHERE storedetailid = '1467';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('465', '7', '1', '1', '64', 'اضافة فاتورة مبيعات', 'sellbillController.php', '11.00', '10', '4', '2021-11-22 12:15:31','0','0');
UPDATE save SET  savecurrentvalue = '8160',  userid = '4' WHERE saveid = '7';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('7710.00','450', '0', '7', 'اضافة فاتورة مبيعات', '64', '8160', '2021-11-22 12:15:31', '4',  'sellbillController.php','1','');
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice)
                    VALUES ('2021-11-22', 450, 360, 360
                    , 360, 360, 360, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+450, sellCostBuyPrice =sellCostBuyPrice+360
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+360, sellCostMeanBuyPrice = sellCostMeanBuyPrice+360
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+360, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+360
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice)
                    VALUES (1, '2021-11-22', 450, 360, 360
                    , 360, 360, 360, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+450, sellCostBuyPrice =sellCostBuyPrice+360
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+360, sellCostMeanBuyPrice = sellCostMeanBuyPrice+360
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+360, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+360
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice)
                    VALUES (1, 450, 360, 360
                    , 360, 360, 360, 0)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+450, netSellCostBuyPrice = netSellCostBuyPrice+360
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+360
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+360
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+360
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+360
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+0;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 0619b6d8fd72db and sellbillId = 64 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:45:31";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:15:31", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:15:31', '4', 'addsellBill', '102.41.168.224', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:45:34";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:15:34", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:15:34', '4', 'addsellBill', '102.41.168.224', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:45:50";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:15:51", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:15:51', '4', 'addAndRetuen', '102.41.168.224', '', 'DESKTOP');

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 0619b6dc656aea
-- ----------------------------------------------------------------------------------------------------

BEGIN;
INSERT INTO returnsellbill (returnsellbilldate, returnsellbillserial, returnsellbillclientid, returnsellbilltotaldeptbefor, returnsellbilltotaldeptafter, returnsellbilldiscount, returnsellbilldiscounttype, returnsellbilltotalbill, returnsellbillaftertotalbill, returnsellbilltotalpayed, returnsellbillfinalbill, returnsellbillstoreid, returnsellbillsysdate,comment, userid, conditions, returnsellbillclientname, returnsellbillsaveid, returnsellbildirectpayment, billnameid, sellerid, tempclientName, returnsellQuantity,tax, carnumber, cartype, carchase, carmotor,costcenterid,dailyentryid,delbyuserid,billReservation,billReservationDate,visaAccountId,cashPayed,visaPayed,isBankAccountTransfer,extraDiscountPer,extraDiscountVal,taxOfDiscountPer,taxOfDiscountVal) VALUES ('2021-11-22 12:15:34', '0619b6dc656aea', '1', '0.00', '0', '0', '1', '220', '220', '-220', '0', '7', '2021-11-22 12:15:51', '', '4', '0', 'نقدي','7', '0', '5', '0', 'نقدي', '1', '0', '', '','','','-1','0','0','0','','0','-220','0','0','0','0','0','0');
UPDATE client SET  clientdebt = '0', userid = '4' WHERE clientid = '1';
INSERT INTO clientdebtchange (clientid, clientdebtchangebefore, clientdebtchangeamount, clientdebtchangetype, processname, clientdebtchangemodelid, clientdebtchangeafter, clientdebtchangedate, userid, tablename, comment, totalOperationCost,discount,reciptid,dailyentryid , num , billid , paytype, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor ) VALUES ('1','0.00','0','1','اضافة فاتورة مردوات مبيعات','16', '0', '2021-11-22 12:15:51', '4', 'returnsellbillController.php', 'اضافة فاتورة مردوات مبيعات', '220', '0', null, '0', null, null,'', '0','1','1','0','1');
INSERT INTO returnsellbilldetail (buyprice, parcode, returnsellbillid, returnsellbilldetailcatid, returnsellbilldetailproductid, returnsellbilldetailquantity, returnsellbilldetailprice, returnsellbilldetailtotalprice, conditions, note, pricetype, discountvalue, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,pricetypepro) VALUES ('210.00', '00465', '16', '1', '465', '1', '220.00', '220', '0', '', '0', '0', '465', '0.00', '0','7','0','','','0','0','0','0','0','0');
UPDATE returnsellbilldetail SET  lastbuyprice = 210.00 , meanbuyprice = 210.00, lastbuyprice_withDiscount = 210.00, meanbuyprice_withDiscount = 210.00
                where returnsellbilldetailid = 24;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet)
                    VALUES (465, '2021-11-22', 0, 0, 0
                    , 0, 0, 0, 0
                    , 220, 210, 210, 210
                    , 210, 210, 0, 0, 1)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+220, returnSellCostBuyPrice = returnSellCostBuyPrice+210, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+210
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+210, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+210
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+210
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                        , netQuantity = netQuantity+0
                        , netQuantityRet = netQuantityRet+1;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice)
                    VALUES (7, '2021-11-22', 0, 0, 0
                    , 0, 0, 0, 0
                    , 220, 210, 210, 210
                    , 210, 210, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+220, returnSellCostBuyPrice = returnSellCostBuyPrice+210, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+210
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+210, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+210
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+210
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
UPDATE storedetail SET  productquantity = '11', userid = '4', storedetaildate = '2021-11-22 12:15:51' WHERE storedetailid = '1467';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('465', '7', '1', '0', '16', 'اضافة فاتورة مردودات مبيعات', 'returnsellbillController.php', '10.00', '11', '4', '2021-11-22 12:15:51','0','0');
UPDATE save SET  savecurrentvalue = '7940',  userid = '4' WHERE saveid = '7';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('8160.00','220', '1', '7', 'اضافة فاتورة مردوات مبيعات', '16', '7940', '2021-11-22 12:15:51', '4',  'returnsellbillController.php','1','');
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice)
                    VALUES ('2021-11-22', 0, 0, 0
                    , 0, 0, 0, 0
                    , 220, 210, 210, 210
                    , 210, 210, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+220, returnSellCostBuyPrice = returnSellCostBuyPrice+210, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+210
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+210, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+210
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+210
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice)
                    VALUES (1, '2021-11-22', 0, 0, 0
                    , 0, 0, 0, 0
                    , 220, 210, 210, 210
                    , 210, 210, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+220, returnSellCostBuyPrice = returnSellCostBuyPrice+210, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+210
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+210, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+210
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+210
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice)
                    VALUES (1, -220, -210, -210
                    , -210, -210, -210, 0)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+-220, netSellCostBuyPrice = netSellCostBuyPrice+-210
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+-210
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+-210
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+-210
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+-210
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+0;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 0619b6dc656aea and sellbillId = 16 and returnsellbillId = 16
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:45:51";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:15:51", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:15:51', '4', 'addsellBill', '102.41.168.224', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:47:04";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:17:04", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:17:05', '4', 'addsellBill', '102.41.168.224', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:47:17";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:17:17", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:17:17', '4', 'addAndRetuen', '102.41.168.224', '', 'DESKTOP');

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 0619b6e21238f0
-- ----------------------------------------------------------------------------------------------------

BEGIN;
INSERT INTO sellbill (sellbilldate, sellbillserial, sellbillclientid, sellbilltotaldeptbefor, sellbilltotaldeptafter, sellbilldiscount, sellbilldiscounttype, sellbilltotalbill, sellbillaftertotalbill, sellbilltotalpayed, sellbillfinalbill, sellbillstoreid, sellbillsysdate,comment, userid, conditions, sellbillclientname, sellbillsaveid, sellbildirectpayment, billnameid, sellerid, tempclientName, sellQuantity,tax ,carnumber, cartype, carchase, carmotor,costcenterid,dailyentryid,obygyVisitId,onlineOrderId,delbyuserid,delivery,totalafterdelivery,billReservation,billReservationDate,webApiId,visaAccountId,cashPayed,visaPayed,isBankAccountTransfer,extraDiscountPer,extraDiscountVal,taxOfDiscountPer,taxOfDiscountVal,taxBillNumber,collectionType,collectionDate) VALUES ('2021-11-22 12:17:05', '0619b6e21238f0', '1', '0.00', '0', '0', '1', '220', '220', '220', '0', '7', '2021-11-22 12:17:17', '', '4', '0', 'نقدي', '7', '0', '3', '0', 'نقدي', '1' ,'0','','','','','-1','0','0','0','0','0','220','0','','0','0','220','0','0','0','0','0','0','0','0','');
UPDATE client SET  clientdebt = '0', userid = '4' WHERE clientid = '1';
INSERT INTO clientdebtchange (clientid, clientdebtchangebefore, clientdebtchangeamount, clientdebtchangetype, processname, clientdebtchangemodelid, clientdebtchangeafter, clientdebtchangedate, userid, tablename, comment, totalOperationCost,discount,reciptid,dailyentryid , num , billid , paytype, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor ) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','65', '0', '2021-11-22 12:17:17', '4', 'sellbillController.php', 'اضافة فاتورة مبيعات', '220', '0', null, '0', null, null,'', '0','1','1','0','1');
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity) VALUES ('210','00465', '65', '1', '465', '1', '220.00', '220', '0', '', '0', '2021-11-22 12:17:17', '465', '0.00', '0', '7','0','','','0','0','0','0','0','0','0','0','','');
UPDATE sellbilldetail SET  lastbuyprice = 210.00 , meanbuyprice = 210.00, lastbuyprice_withDiscount = 210.00, meanbuyprice_withDiscount = 210.00
                where sellbilldetailid = 156;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet)
                    VALUES (465, '2021-11-22', 220, 210, 210
                    , 210, 210, 210, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+220, sellCostBuyPrice =sellCostBuyPrice+210
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+210, sellCostMeanBuyPrice = sellCostMeanBuyPrice+210
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+210, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+210
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                        , netQuantity = netQuantity+1
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice)
                    VALUES (7, '2021-11-22', 220, 210, 210
                    , 210, 210, 210, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+220, sellCostBuyPrice =sellCostBuyPrice+210
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+210, sellCostMeanBuyPrice = sellCostMeanBuyPrice+210
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+210, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+210
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
UPDATE storedetail SET  productquantity = '10', userid = '4', storedetaildate = '2021-11-22 12:17:17' WHERE storedetailid = '1467';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('465', '7', '1', '1', '65', 'اضافة فاتورة مبيعات', 'sellbillController.php', '11.00', '10', '4', '2021-11-22 12:17:17','0','0');
UPDATE save SET  savecurrentvalue = '8160',  userid = '4' WHERE saveid = '7';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('7940.00','220', '0', '7', 'اضافة فاتورة مبيعات', '65', '8160', '2021-11-22 12:17:17', '4',  'sellbillController.php','1','');
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice)
                    VALUES ('2021-11-22', 220, 210, 210
                    , 210, 210, 210, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+220, sellCostBuyPrice =sellCostBuyPrice+210
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+210, sellCostMeanBuyPrice = sellCostMeanBuyPrice+210
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+210, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+210
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice)
                    VALUES (1, '2021-11-22', 220, 210, 210
                    , 210, 210, 210, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+220, sellCostBuyPrice =sellCostBuyPrice+210
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+210, sellCostMeanBuyPrice = sellCostMeanBuyPrice+210
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+210, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+210
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice)
                    VALUES (1, 220, 210, 210
                    , 210, 210, 210, 0)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+220, netSellCostBuyPrice = netSellCostBuyPrice+210
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+210
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+210
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+210
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+210
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+0;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 0619b6e21238f0 and sellbillId = 65 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:47:18";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:17:18", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:17:18', '4', 'addsellBill', '102.41.168.224', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:47:23";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:17:23", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2021-11-22 12:17:23', '4', '', '102.41.168.224', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:47:27";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:17:27", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:17:27', '4', 'addsellBill', '102.41.168.224', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:50:15";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:20:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:20:16', '1', '', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:52:56";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:22:56", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:22:56', '4', 'addsellBill', '102.41.168.224', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:54:55";
UPDATE user SET loginip = "102.41.168.224", lastactivetime = "2021-11-22 12:24:55", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:24:55', '4', 'addsellBill', '102.41.168.224', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 08:55:16";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:25:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:25:16', '1', '', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:08:01";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:38:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:38:01', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:08:03";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:38:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:38:04', '1', 'show', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:08:53";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:38:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:38:53', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '146';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('146', '1', '24', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '24', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:08:55";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:38:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:38:55', '1', 'show', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:10:07";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:40:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:40:07', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '31';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('31', '1', '36', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '63.00', '27', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:10:09";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:40:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:40:09', '1', 'show', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:11:23";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:41:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:41:24', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '11';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('11', '1', '2', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '28.00', '30', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:11:25";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:41:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:41:25', '1', 'show', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:12:16";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:42:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:42:16', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '18';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('18', '1', '64', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '98.00', '34', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:12:18";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:42:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:42:18', '1', 'show', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:15:46";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:45:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:45:46', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:15:48";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:45:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:45:48', '1', 'show', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:16:03";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:46:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:46:03', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:16:05";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:46:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:46:05', '1', 'show', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:17:24";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:47:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:47:24', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:17:26";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:47:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:47:26', '1', 'show', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:24:03";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:54:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:54:03', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:24:04";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:54:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:54:04', '1', 'show', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:25:42";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:55:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:55:42', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:25:44";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 12:55:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 12:55:44', '1', 'show', '197.56.110.114', '', 'DESKTOP');
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties;
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:29:40";
UPDATE user SET loginip = "156.166.155.248", lastactivetime = "2021-11-22 12:59:40", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 12:59:40', '7', '', '156.166.155.248', '', 'DESKTOP');
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:29:40";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:29:43";
UPDATE user SET loginip = "156.166.155.248", lastactivetime = "2021-11-22 12:59:43", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 12:59:43', '7', 'addsellBill', '156.166.155.248', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:30:25";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 13:00:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 13:00:25', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 09:30:27";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 13:00:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 13:00:27', '1', 'show', '197.56.110.114', '', 'DESKTOP');
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties;
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:40:38";
UPDATE user SET loginip = "156.164.240.172", lastactivetime = "2021-11-22 14:10:38", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 14:10:38', '7', '', '156.164.240.172', '', 'DESKTOP');
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:40:39";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:40:49";
UPDATE user SET loginip = "156.164.240.172", lastactivetime = "2021-11-22 14:10:49", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 14:10:49', '7', '', '156.164.240.172', '', 'DESKTOP');
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:40:49";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:41:29";
UPDATE user SET loginip = "156.164.240.172", lastactivetime = "2021-11-22 14:11:29", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 14:11:30', '7', 'addsellBill', '156.164.240.172', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:41:39";
UPDATE user SET loginip = "156.164.240.172", lastactivetime = "2021-11-22 14:11:39", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientPayedDeptController.php', '2021-11-22 14:11:39', '7', '', '156.164.240.172', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:43:21";
UPDATE user SET loginip = "156.164.240.172", lastactivetime = "2021-11-22 14:13:21", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientPayedDeptController.php', '2021-11-22 14:13:21', '7', 'show', '156.164.240.172', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:46:57";
UPDATE user SET loginip = "156.164.240.172", lastactivetime = "2021-11-22 14:16:57", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientPayedDeptController.php', '2021-11-22 14:16:57', '7', '', '156.164.240.172', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:46:58";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 14:16:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 14:16:58', '1', 'add', '197.56.110.114', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '226.950', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '1483';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('564', '1', '226.95', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '226.950', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:47:00";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 14:17:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 14:17:00', '1', 'show', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:47:02";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 14:17:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 14:17:02', '1', 'addsellBill', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:48:09";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 14:18:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 14:18:09', '1', 'addAndRetuen', '197.56.110.114', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 0619b8a3f0fe22
-- ----------------------------------------------------------------------------------------------------

BEGIN;
CALL clientInUse(15,@clientdebt,@clientname);
INSERT INTO sellbill (sellbilldate, sellbillserial, sellbillclientid, sellbilltotaldeptbefor, sellbilltotaldeptafter, sellbilldiscount, sellbilldiscounttype, sellbilltotalbill, sellbillaftertotalbill, sellbilltotalpayed, sellbillfinalbill, sellbillstoreid, sellbillsysdate,comment, userid, conditions, sellbillclientname, sellbillsaveid, sellbildirectpayment, billnameid, sellerid, tempclientName, sellQuantity,tax ,carnumber, cartype, carchase, carmotor,costcenterid,dailyentryid,obygyVisitId,onlineOrderId,delbyuserid,delivery,totalafterdelivery,billReservation,billReservationDate,webApiId,visaAccountId,cashPayed,visaPayed,isBankAccountTransfer,extraDiscountPer,extraDiscountVal,taxOfDiscountPer,taxOfDiscountVal,taxBillNumber,collectionType,collectionDate) VALUES ('2021-11-22 14:17:03', '0619b8a3f0fe22', '15', '24793.00', '47034', '0', '1', '22241', '22241', '0', '22241', '1', '2021-11-22 14:18:10', '', '1', '0', 'حمادة العرينى', '1', '1', '3', '0', 'حمادة العرينى', '226.95' ,'0','','','','','-1','0','0','0','0','0','22241','0','','0','0','0','0','0','0','0','0','0','0','0','');
UPDATE client SET  clientdebt = '47034', userid = '1' WHERE clientid = '15';
INSERT INTO clientdebtchange (clientid, clientdebtchangebefore, clientdebtchangeamount, clientdebtchangetype, processname, clientdebtchangemodelid, clientdebtchangeafter, clientdebtchangedate, userid, tablename, comment, totalOperationCost,discount,reciptid,dailyentryid , num , billid , paytype, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor ) VALUES ('15','24793.00','22241','0','اضافة فاتورة مبيعات','66', '47034', '2021-11-22 14:18:10', '1', 'sellbillController.php', 'اضافة فاتورة مبيعات', '22241', '0', null, '0', null, null,'', '0','1','1','22241','1');
UPDATE client SET  inUse = 0 where clientid = 15;
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity) VALUES ('95','00564', '66', '2', '564', '226.950', '98.00', '22241', '0', '', '1', '2021-11-22 14:18:10', '564', '0.00', '0', '1','0','','','0','0','0','0','0','0','1','0','','');
UPDATE sellbilldetail SET  lastbuyprice = 95.00 , meanbuyprice = 95.00, lastbuyprice_withDiscount = 95.00, meanbuyprice_withDiscount = 95.00
                where sellbilldetailid = 157;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet)
                    VALUES (564, '2021-11-22', 22241, 21560.25, 21560.25
                    , 21560.25, 21560.25, 21560.25, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0, 226.95, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+22241, sellCostBuyPrice =sellCostBuyPrice+21560.25
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+21560.25, sellCostMeanBuyPrice = sellCostMeanBuyPrice+21560.25
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+21560.25, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+21560.25
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                        , netQuantity = netQuantity+226.95
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice)
                    VALUES (1, '2021-11-22', 22241, 21560.25, 21560.25
                    , 21560.25, 21560.25, 21560.25, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+22241, sellCostBuyPrice =sellCostBuyPrice+21560.25
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+21560.25, sellCostMeanBuyPrice = sellCostMeanBuyPrice+21560.25
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+21560.25, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+21560.25
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22 14:18:10' WHERE storedetailid = '1483';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('564', '1', '226.95', '1', '66', 'اضافة فاتورة مبيعات', 'sellbillController.php', '226.95', '0', '1', '2021-11-22 14:18:10','0','0');
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice)
                    VALUES ('2021-11-22', 22241, 21560.25, 21560.25
                    , 21560.25, 21560.25, 21560.25, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+22241, sellCostBuyPrice =sellCostBuyPrice+21560.25
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+21560.25, sellCostMeanBuyPrice = sellCostMeanBuyPrice+21560.25
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+21560.25, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+21560.25
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice)
                    VALUES (15, '2021-11-22', 22241, 21560.25, 21560.25
                    , 21560.25, 21560.25, 21560.25, 0
                    , 0, 0, 0, 0
                    , 0, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+22241, sellCostBuyPrice =sellCostBuyPrice+21560.25
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+21560.25, sellCostMeanBuyPrice = sellCostMeanBuyPrice+21560.25
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+21560.25, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+21560.25
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                        , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice)
                    VALUES (1, 22241, 21560.25, 21560.25
                    , 21560.25, 21560.25, 21560.25, 0)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+22241, netSellCostBuyPrice = netSellCostBuyPrice+21560.25
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+21560.25
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+21560.25
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+21560.25
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+21560.25
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+0;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 0619b8a3f0fe22 and sellbillId = 66 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:48:10";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 14:18:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 14:18:10', '1', 'addsellBill', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:48:15";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 14:18:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientReportsController.php', '2021-11-22 14:18:15', '1', '', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:48:23";
UPDATE user SET loginip = "197.56.110.114", lastactivetime = "2021-11-22 14:18:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientReportsController.php', '2021-11-22 14:18:23', '1', 'show', '197.56.110.114', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:49:45";
UPDATE user SET loginip = "156.164.240.172", lastactivetime = "2021-11-22 14:19:45", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientPayedDeptController.php', '2021-11-22 14:19:45', '7', 'add', '156.164.240.172', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;

-- ----------------------------------------------------------------------------------------------------
-- clientPayedDeptController add - with modelid =190
-- ----------------------------------------------------------------------------------------------------

BEGIN;
CALL clientInUse(60,@clientdebt,@clientname);
UPDATE client SET  clientdebt = '50' , clientdate = '2021-11-22 14:19:45', userid = '7' WHERE clientid = '60';
UPDATE client SET  inUse = 0 where clientid = 60;
INSERT INTO clientdebtchange (clientid, clientdebtchangebefore, clientdebtchangeamount, clientdebtchangetype, processname, clientdebtchangemodelid, clientdebtchangeafter, clientdebtchangedate, userid, tablename, comment, totalOperationCost,discount,reciptid,dailyentryid , num , billid , paytype, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor ) VALUES ('60','120.00','70','1','ايصال تحصيل (( قبض من عميل ))','190', '50', '2021-11-22 14:16:57', '7', 'clientPayedDeptController.php', '   ', '70', '0', null, '0', null, null,'', '-1','1','1','1','1');
UPDATE save SET  savecurrentvalue = '2399',  userid = '7' WHERE saveid = '5';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('2329.00','70', '0', '5', 'ايصال تحصيل (( قبض من عميل ))', '191', '2399', '2021-11-22 14:19:45', '7',  'clientPayedDeptController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '70', '70', '2021-11-22', '7', '0', '0', '2021-11-22 14:19:45','اضافة ايصال سداد للعميل ام حميس خطاب','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('669', '139', '70', '','0');
UPDATE accountstree SET name = 'خزينة محل عبدالله', customName = 'خزينة محل عبدالله', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '424', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '139';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('669', '113', '70', '','0');
UPDATE accountstree SET name = 'ام حميس خطاب', customName = 'ام حميس خطاب', parent = '23', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '-70', theOrder = '0', layingOrder = '',reportid = '0' WHERE id = '113';
UPDATE clientdebtchange SET clientid = '60', clientdebtchangebefore = '120.00', clientdebtchangeamount = '70.00', clientdebtchangetype = '1', processname = 'ايصال تحصيل (( قبض من عميل ))', clientdebtchangemodelid = '190', clientdebtchangeafter = '50.00', clientdebtchangedate = '2021-11-22 14:16:57', userid = '7', tablename = 'clientPayedDeptController.php', comment = '   ', totalOperationCost = '70.00',discount='', reciptid=null, dailyentryid = '669',seller = '0',currencyId='1',conversionFactor='1',payedInCurrency='1',saveConversionFactor='1' WHERE clientdebtchangeid = '191';
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- clientPayedDeptController add end - with modelid =190 -clientdebtchangeId = 191
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:49:45";
UPDATE user SET loginip = "156.164.240.172", lastactivetime = "2021-11-22 14:19:46", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientPayedDeptController.php', '2021-11-22 14:19:46', '7', 'sucess', '156.164.240.172', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:49:48";
UPDATE user SET loginip = "156.164.240.172", lastactivetime = "2021-11-22 14:19:48", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientPayedDeptController.php', '2021-11-22 14:19:48', '7', 'show', '156.164.240.172', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 10:49:53";
UPDATE user SET loginip = "156.164.240.172", lastactivetime = "2021-11-22 14:19:53", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 14:19:54', '7', 'addsellBill', '156.164.240.172', '', 'DESKTOP');
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties;
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 11:32:45";
UPDATE user SET loginip = "154.176.107.180", lastactivetime = "2021-11-22 15:02:45", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 15:02:45', '8', '', '154.176.107.180', '', 'DESKTOP');
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 11:32:45";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 11:32:54";
UPDATE user SET loginip = "154.176.107.180", lastactivetime = "2021-11-22 15:02:54", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 15:02:54', '8', 'addsellBill', '154.176.107.180', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 11:55:26";
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties;
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 11:55:48";
UPDATE user SET loginip = "154.180.88.192", lastactivetime = "2021-11-22 15:25:48", deviceType = "DESKTOP" WHERE userid = 5;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 15:25:48', '5', '', '154.180.88.192', '', 'DESKTOP');
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 11:55:49";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 11:57:21";
UPDATE user SET loginip = "154.180.88.192", lastactivetime = "2021-11-22 15:27:21", deviceType = "DESKTOP" WHERE userid = 5;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 15:27:21', '5', 'addsellBill', '154.180.88.192', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 12:37:22";
UPDATE user SET loginip = "154.180.88.192", lastactivetime = "2021-11-22 16:07:22", deviceType = "DESKTOP" WHERE userid = 5;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 16:07:22', '5', '', '154.180.88.192', '', 'DESKTOP');
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 12:37:22";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 12:37:27";
UPDATE user SET loginip = "154.180.88.192", lastactivetime = "2021-11-22 16:07:27", deviceType = "DESKTOP" WHERE userid = 5;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 16:07:27', '5', 'addsellBill', '154.180.88.192', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 12:37:27";
UPDATE user SET loginip = "154.180.88.192", lastactivetime = "2021-11-22 16:07:27", deviceType = "DESKTOP" WHERE userid = 5;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-22 16:07:27', '5', 'addsellBill', '154.180.88.192', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE userid = 1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 13:04:10";
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties;
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 13:04:23";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 16:34:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 16:34:23', '1', '', '102.47.145.91', '', 'DESKTOP');
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 13:04:23";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 13:04:34";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 16:34:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storedetailController.php', '2021-11-22 16:34:34', '1', '', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 13:04:59";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 16:34:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storedetailController.php', '2021-11-22 16:34:59', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 13:24:10";
UPDATE user SET loginip = "154.176.107.180", lastactivetime = "2021-11-22 16:54:10", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 16:54:11', '8', '', '154.176.107.180', '', 'DESKTOP');
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 13:24:11";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 13:24:14";
UPDATE user SET loginip = "154.176.107.180", lastactivetime = "2021-11-22 16:54:14", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-22 16:54:14', '8', '', '154.176.107.180', '', 'DESKTOP');
UPDATE product
                JOIN (
                       select productingredients.productId
                              ,sum(productnumber * quantity * productBuyPrice) as productBuyPrice
                              ,sum(productnumber * quantity * lastbuyprice) as lastbuyprice
                              ,sum(productnumber * quantity * lastbuyprice_withDiscount) as lastbuyprice_withDiscount
                              ,sum(productnumber * quantity * meanbuyprice) as meanbuyprice
                              ,sum(productnumber * quantity * meanbuyprice_withDiscount) as meanbuyprice_withDiscount
                              ,sum(productnumber * quantity * overAllAveragePrice) as overAllAveragePrice
                      from product
                      join productingredients on product.productId = productingredients.ingridientId
                      join productunit on productunit.productunitid = productingredients.unitId
                      group by productingredients.productId
                    ) as ingridientPrice ON ingridientPrice.productId =  product.productId
                SET product.productBuyPrice = ingridientPrice.productBuyPrice,
                        product.lastbuyprice = ingridientPrice.lastbuyprice,
                    product.lastbuyprice_withDiscount = ingridientPrice.lastbuyprice_withDiscount,
                    product.meanbuyprice = ingridientPrice.meanbuyprice,
                    product.meanbuyprice_withDiscount = ingridientPrice.meanbuyprice_withDiscount,
                    product.overAllAveragePrice = ingridientPrice.overAllAveragePrice;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 13:24:14";
DROP PROCEDURE IF EXISTS clientInUse;;

CREATE PROCEDURE clientInUse(IN id INT,OUT debtis VARCHAR(256),OUT nameis VARCHAR(256))
BEGIN
DECLARE in_use_flag INT DEFAULT 1;
SELECT inUse FROM client WHERE clientid = id INTO in_use_flag;

    IF in_use_flag = 0 THEN
        update client set inUse=1 where clientid = id;
        SELECT clientdebt,clientname INTO debtis,nameis FROM client WHERE clientid = id ;
    ELSE
        SELECT "in_use","in_use" INTO debtis,nameis;
    END IF;

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:34:53";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:04:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:04:53', '1', '', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:37:04";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:07:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:07:05', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '100', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '109';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('109', '1', '100', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '100', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:37:07";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:07:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:07:07', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:38:12";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:08:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:08:12', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '69', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '107';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('107', '1', '69', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '69', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:38:14";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:08:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:08:14', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:39:10";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:09:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:09:10', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '29', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '123';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('123', '1', '29', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '29', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:39:12";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:09:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:09:12', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:39:42";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:09:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:09:42', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '97';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('97', '1', '25', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '25', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:39:44";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:09:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:09:44', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:40:13";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:10:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:10:13', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '171';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('171', '1', '32', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '32', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:40:15";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:10:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:10:15', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:40:45";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:10:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:10:45', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '75';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('75', '1', '32', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '32', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:40:47";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:10:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:10:47', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:41:43";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:11:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:11:43', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '171';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('171', '1', '32', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '32.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:41:46";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:11:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:11:47', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:42:27";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:12:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:12:27', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '201';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('201', '1', '41', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-18.00', '23', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:42:29";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:12:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:12:29', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:42:45";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:12:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-22 18:12:45', '1', '', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:42:51";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:12:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-22 18:12:51', '1', '', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:44:09";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:14:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-22 18:14:09', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:44:25";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:14:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-22 18:14:25', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:45:04";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:15:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-22 18:15:04', '1', 'add', '102.47.145.91', '', 'DESKTOP');
BEGIN;
INSERT INTO product (productName, productDescription, productCatId, productBuyPrice, productSellAllPrice, productSellUnitPrice, productSellHalfPrice, productDate, conditions, userId, limitamount, parcode,type, expireDate, dailyentryId,isService,isOptic,lastbuyprice,lastbuyprice_withDiscount,meanbuyprice,meanbuyprice_withDiscount , productbuypricereal , buypricereal_precentage , buytotal_precentage , buyhalf_precentage , buypart_precentage,logo,inMenu,obygyDetectionId,hasSizeAndColor,overAllAveragePrice,reviewType,online,updatebyuser,proExcelid,proExcelParcode,webApiId) VALUES ('916مراسي في فسكوز','','1','165','170', '200','180', '2021-11-22', '0', '1', '0', '', '0', '0', '0', '0', '0', '165','165','165','165','165','0','3.03','9.09','21.21','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = '916مراسي في فسكوز', productDescription = '', productCatId = '1', productBuyPrice = '165', productSellAllPrice = '170', productSellUnitPrice = '200', productSellHalfPrice = '180', productDate = '2021-11-22', conditions = '0', userId = '1', limitamount = '0', parcode = '00568',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '165',lastbuyprice_withDiscount = '165',meanbuyprice = '165',meanbuyprice_withDiscount = '165' , productbuypricereal = '165' , buypricereal_precentage = '0' , buytotal_precentage = '3.03' , buyhalf_precentage = '9.09' , buypart_precentage = '21.21',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '568';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '568', '1', '2021-11-22', '1', '0','0056801','170','180','200','165');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('568', '1', '34', '1', '2021-11-22');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('568', '1', '34', '0', '568', 'إضافة منتج', 'productController.php', '0', '34', '1', '2021-11-22','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (568, 1,'2021-11-22 18:15:04',1)
                ON DUPLICATE KEY UPDATE productid = 568, edited = 1, sysdate = '2021-11-22 18:15:04', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '5610', '5610', '2021-11-22', '1', '0', '0', '2021-11-22 18:15:04','إضافة منتج 916مراسي في فسكوز الكمية 34','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('670', '19', '5610', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '5716262.5', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('670', '7', '5610', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '6571208.3', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = '916مراسي في فسكوز', productDescription = '', productCatId = '1', productBuyPrice = '165.00', productSellAllPrice = '170.00', productSellUnitPrice = '200.00', productSellHalfPrice = '180.00', productDate = '2021-11-22', conditions = '0', userId = '1', limitamount = '0', parcode = '00568',type ='0', expireDate = '0' , dailyentryId = '670',isService = '0',isOptic = '0',lastbuyprice = '165',lastbuyprice_withDiscount = '165',meanbuyprice = '165',meanbuyprice_withDiscount = '165' , productbuypricereal = '165' , buypricereal_precentage = '0' , buytotal_precentage = '3.03' , buyhalf_precentage = '9.09' , buypart_precentage = '21.21',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '568';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:45:06";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:15:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-22 18:15:07', '1', '', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:46:03";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:16:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storedetailController.php', '2021-11-22 18:16:03', '1', '', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 14:46:22";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:16:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storedetailController.php', '2021-11-22 18:16:22', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:23:09";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:53:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storedetailController.php', '2021-11-22 18:53:09', '1', '', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:24:27";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:54:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storedetailController.php', '2021-11-22 18:54:27', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:25:31";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:55:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:55:31', '1', '', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:25:55";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:55:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:55:55', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '487';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('487', '1', '78', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-78.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:25:58";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:55:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:55:58', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:26:24";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:56:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:56:24', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '17', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '17';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('17', '1', '61', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '78.00', '17', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:26:26";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:56:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:56:26', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:26:50";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:56:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:56:50', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '47', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '17';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('17', '1', '30', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '17.00', '47', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:26:53";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 18:56:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 18:56:53', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:32:47";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:02:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storedetailController.php', '2021-11-22 19:02:47', '1', '', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:38:16";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:08:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:08:16', '1', '', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:38:36";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:08:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:08:36', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '1523';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('567', '1', '24', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-24.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:38:38";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:08:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:08:38', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:39:13";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:09:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:09:13', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '1484';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('565', '1', '8', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '8.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:39:16";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:09:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:09:16', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:40:42";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:10:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:10:42', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '1482';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('563', '1', '24', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-24.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:40:44";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:10:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:10:44', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:41:22";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:11:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:11:22', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '1480';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('561', '1', '200', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-200.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:41:24";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:11:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:11:24', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:41:54";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:11:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:11:54', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '1479';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('560', '1', '16', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-16.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:41:56";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:11:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:11:56', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:42:35";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:12:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:12:35', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '218';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('218', '1', '209', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-209.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:42:37";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:12:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:12:37', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:43:04";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:13:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:13:04', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '542';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('542', '1', '209', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '209.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:43:06";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:13:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:13:06', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:43:35";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:13:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:13:35', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '252';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('252', '1', '19', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-19.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:43:37";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:13:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:13:38', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:44:01";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:14:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:14:01', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '541';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('541', '1', '2', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-2.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:44:03";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:14:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:14:03', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:44:40";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:14:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:14:40', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '537';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('537', '1', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:44:42";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:14:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:14:42', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:45:40";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:15:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:15:40', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '31';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('31', '1', '27', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '27.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:45:42";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:15:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:15:42', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:46:06";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:16:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:16:06', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '480';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('480', '1', '12', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-12.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:46:09";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:16:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:16:09', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:46:32";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:16:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:16:32', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '525';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('525', '1', '25', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-25.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:46:34";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:16:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:16:35', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:47:00";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:17:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:17:00', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '217';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('217', '1', '20', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-20.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:47:03";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:17:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:17:03', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:47:19";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:17:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:17:19', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '521';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('521', '1', '20', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '20.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:47:23";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:17:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:17:23', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:47:59";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:17:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:17:59', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '518';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '1', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:48:01";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:18:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:18:01', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:48:27";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:18:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:18:27', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '513';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '1', '2', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '1', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:48:30";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:18:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:18:31', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:49:27";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:19:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:19:27', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '200';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('200', '1', '3', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-3.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:49:29";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:19:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:19:29', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:50:04";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:20:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:20:04', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '505';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('505', '1', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:50:06";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:20:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:20:06', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:50:35";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:20:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:20:35', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '163';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('163', '1', '18', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-18.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:50:37";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:20:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:20:37', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:50:56";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:20:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:20:57', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '500';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('500', '1', '18', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '18.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:50:58";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:20:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:20:59', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:51:42";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:21:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:21:42', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '24';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('24', '1', '17', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '17.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:51:43";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:21:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:21:44', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:52:03";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:22:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:22:03', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '495';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('495', '1', '17', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-17.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:52:05";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:22:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:22:06', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:52:53";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:22:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:22:53', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '20';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('20', '1', '9', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '9.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:52:55";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:22:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:22:55', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:53:21";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:23:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:23:21', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '491';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('491', '1', '9', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-9.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:53:23";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:23:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:23:23', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:54:20";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:24:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:24:20', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '490';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('490', '1', '25', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-25.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:54:22";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:24:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:24:22', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:54:52";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:24:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:24:52', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '17';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('17', '1', '47', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '47.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:54:54";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:24:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:24:54', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:56:55";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:26:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:26:55', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '15';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('15', '1', '21', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '21.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:56:57";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:26:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:26:57', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:57:14";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:27:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:27:14', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '486';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('486', '1', '21', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-21.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:57:16";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:27:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:27:16', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:57:44";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:27:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:27:44', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '12';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('12', '1', '52', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-52.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:57:46";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:27:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:27:46', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:58:06";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:28:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:28:06', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '134';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('134', '1', '59', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '59.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:58:08";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:28:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:28:08', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:58:38";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:28:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:28:39', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '483';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('483', '1', '59', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-59.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:58:41";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:28:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:28:41', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:59:43";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:29:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:29:43', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '32';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('32', '1', '7', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '7.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 15:59:45";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:29:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:29:45', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:00:05";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:30:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:30:05', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '481';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('481', '1', '7', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-7.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:00:07";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:30:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:30:08', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:02:15";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:32:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:32:15', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '470';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('470', '1', '18', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '18.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:02:18";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:32:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:32:18', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:03:30";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:33:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:33:31', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '159';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('159', '1', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:03:33";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:33:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:33:33', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:04:13";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:34:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:34:13', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '268';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('268', '1', '25', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-25.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:04:16";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:34:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:34:16', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:05:25";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:35:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:35:25', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '469';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('469', '1', '20', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '20.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:05:27";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:35:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:35:27', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:06:35";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:36:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:36:35', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '467';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('467', '1', '28', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-28.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:06:37";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:36:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:36:37', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:08:15";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:38:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:38:15', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '466';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('466', '1', '6', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-6.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:08:17";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:38:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:38:17', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:09:25";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:39:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:39:25', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '465';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('465', '1', '46', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-46.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:09:27";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:39:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:39:27', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:10:17";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:40:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:40:17', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '302';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('302', '1', '28', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-28.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:10:19";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:40:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:40:19', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:11:16";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:41:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:41:16', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '125';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('125', '1', '24', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-24.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:11:18";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:41:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:41:18', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:11:48";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:41:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:41:48', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '463';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('463', '1', '115', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-115.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:11:50";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:41:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:41:50', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:12:41";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:42:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:42:41', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '391';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('391', '1', '24', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '24.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:12:43";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:42:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:42:43', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:12:58";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:42:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:42:58', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '462';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('462', '1', '24', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-24.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:13:00";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:43:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:43:00', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:13:30";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:43:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:43:35', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '128';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('128', '1', '52', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-52.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:13:38";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:43:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:43:38', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:14:19";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:44:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:44:19', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '456';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('456', '1', '25', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '25.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:14:21";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:44:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:44:21', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:14:46";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:44:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:44:46', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '402';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('402', '1', '27', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '27.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:14:48";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:44:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:44:48', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:15:38";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:45:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:45:38', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '450';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('450', '1', '22', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-22.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:15:40";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:45:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:45:40', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:16:12";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:46:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:46:12', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '442';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('442', '1', '273', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '273.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:16:14";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:46:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:46:14', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:16:48";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:46:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:46:48', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '196';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('196', '1', '9', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-9.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:16:50";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:46:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:46:50', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:17:10";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:47:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:47:10', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '435';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('435', '1', '9', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '9.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:17:12";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:47:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:47:12', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:18:54";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:48:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:48:54', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '399';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('399', '1', '40', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '40.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:18:56";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:48:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:48:56', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:19:24";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:49:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:49:24', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '398';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('398', '1', '26', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-26.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:19:26";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:49:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:49:26', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:19:54";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:49:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:49:54', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '209';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('209', '1', '74', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-74.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:19:56";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:49:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:49:56', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:20:14";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:50:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:50:15', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '397';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('397', '1', '26', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-26.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:20:17";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:50:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:50:17', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:21:19";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:51:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:51:20', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '394';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('394', '1', '58', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '58.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:21:22";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:51:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:51:22', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:22:12";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:52:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:52:12', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '208';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('208', '1', '20', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-20.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:22:14";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:52:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:52:14', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:23:48";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:53:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:53:48', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '170';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('170', '1', '26', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-26.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:23:50";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:53:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:53:50', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:24:11";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:54:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:54:11', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '375';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('375', '1', '26', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '26.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:24:13";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:54:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:54:13', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:24:35";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:54:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:54:35', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '44';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('44', '1', '4', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '4.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:24:37";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:54:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:54:37', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:24:55";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:54:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:54:55', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '334';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('334', '1', '4', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-4.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:24:57";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:54:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:54:57', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:26:04";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:56:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:56:04', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '303';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('303', '1', '28', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-28.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:26:06";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:56:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:56:06', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:26:50";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:56:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:56:50', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '315';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('315', '1', '28', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '28.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:26:52";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:56:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:56:53', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:28:35";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:58:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:58:35', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '464';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('464', '1', '28', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '28.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:28:36";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:58:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:58:37', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:29:02";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:59:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:59:03', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '92';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('92', '1', '9', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-9.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:29:05";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:59:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:59:05', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:29:18";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:59:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:59:18', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '280';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('280', '1', '9', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '9.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:29:20";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 19:59:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 19:59:20', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:30:42";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:00:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:00:42', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '254';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('254', '1', '17', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-17.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:30:44";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:00:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:00:44', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:31:16";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:01:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:01:16', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '253';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('253', '1', '2', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-2.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:31:18";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:01:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:01:18', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:32:14";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:02:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:02:14', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '251';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('251', '1', '36', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-36.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:32:16";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:02:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:02:17', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:32:54";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:02:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:02:54', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '249';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('249', '1', '11', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-11.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:32:56";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:02:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:02:56', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:33:31";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:03:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:03:31', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '23';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('23', '1', '28', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '28.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:33:34";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:03:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:03:34', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:34:04";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:04:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:04:04', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '246';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('246', '1', '28', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-28.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:34:06";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:04:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:04:06', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:34:54";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:04:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:04:54', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '46';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('46', '1', '8', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '8.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:34:57";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:04:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:04:57', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:35:12";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:05:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:05:12', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '244';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('244', '1', '8', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-8.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:35:14";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:05:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:05:14', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:35:42";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:05:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:05:42', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '1';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1', '1', '40', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '40.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:35:44";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:05:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:05:44', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:36:30";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:06:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:06:30', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '236';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('236', '1', '40', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-40.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:36:32";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:06:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:06:33', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:37:15";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:07:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:07:15', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '234';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('234', '1', '98', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-98.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:37:17";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:07:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:07:17', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:37:55";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:07:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:07:55', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '233';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('233', '1', '95', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-95.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:37:57";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:07:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:07:57', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:38:17";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:08:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:08:18', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '14';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('14', '1', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:38:19";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:08:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:08:20', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:38:36";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:08:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:08:36', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '231';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('231', '1', '5', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-5.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:38:38";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:08:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:08:39', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:38:59";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:08:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:08:59', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '10';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('10', '1', '53', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '53.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:39:01";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:09:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:09:01', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:39:34";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:09:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:09:34', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '223';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('223', '1', '53', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-53.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:39:36";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:09:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:09:36', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:41:31";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:11:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:11:31', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '393';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('393', '1', '20', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '20.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:41:33";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:11:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:11:33', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:46:13";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:16:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:16:13', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '22';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('22', '1', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:46:15";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:16:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:16:15', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:46:28";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:16:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:16:28', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '139';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('139', '1', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية لم يتغير', 'inventoryController.php', '1.00', '1', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:46:30";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:16:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:16:30', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:47:40";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:17:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:17:40', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '233';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('233', '1', '20', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '20', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:47:42";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:17:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:17:42', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:49:02";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:19:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:19:02', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '131';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('131', '1', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:49:05";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:19:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:19:05', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:49:35";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:19:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:19:35', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '130';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('130', '1', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:49:37";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:19:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:19:38', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:55:56";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:25:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:25:57', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '6';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '1', '30', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '30.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:55:59";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:25:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:26:00', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:56:50";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:26:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:26:50', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '2';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2', '1', '25', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '25.00', '0', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:56:53";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:26:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:26:53', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:59:11";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:29:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:29:11', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '1';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1', '1', '22', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '22', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 16:59:13";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:29:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:29:13', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 17:00:11";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:30:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:30:11', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '80';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('80', '1', '22', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '22', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 17:00:13";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:30:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:30:13', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 17:01:16";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:31:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:31:16', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '89', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '107';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('107', '1', '20', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '69.00', '89', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 17:01:27";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:31:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:31:27', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 17:01:54";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:31:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:31:54', '1', 'add', '102.47.145.91', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2021-11-22' WHERE storedetailid = '190';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('190', '1', '16', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0.00', '16', '1', '2021-11-22','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-22 17:01:56";
UPDATE user SET loginip = "102.47.145.91", lastactivetime = "2021-11-22 20:31:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2021-11-22 20:31:57', '1', 'show', '102.47.145.91', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE userid = 1;
