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-08 07:09:24";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 10:39:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-08 10:39:25', '1', '', '197.56.87.123', '', '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-08',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-08 07:09:25";
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-08 07:09:41";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 10:39:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-08 10:39:41', '1', 'show', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 07:09:45";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 10:39:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-08 10:39:45', '1', 'addsellBill', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 07:09:58";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 10:39:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 10:39:58', '1', '', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 07:10:24";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 10:40:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storeController.php', '2021-11-08 10:40:24', '1', 'show', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 07:10:33";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 10:40:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storeController.php', '2021-11-08 10:40:33', '1', 'edit', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 07:10:49";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 10:40:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storereportController.php', '2021-11-08 10:40:49', '1', '', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 07:10:59";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 10:40:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storereportController.php', '2021-11-08 10:40:59', '1', 'show', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 07:11:03";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 10:41:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storereportController.php', '2021-11-08 10:41:03', '1', 'show', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 07:11:18";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 10:41:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 10:41:18', '1', 'show', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 07:14:24";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 10:44:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 10:44:24', '1', '', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 08:19:56";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 11:49:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 11:49:56', '1', 'add', '197.56.87.123', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(2,1,4,6,30,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 11:49:56',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '140', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '6';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 6, 0, 0
                    , 145.00, -30, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2021-11-08*145.00," WHERE transferproductid = 11;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '1', '30', '1', '11', 'تحويل منتجات من المخزن', 'storemovementController.php', '170.00', '140', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('6', '4', '30', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 6, 0, 0
                    , 145.00, 30, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '4', '30', '0', '11', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '9', '5', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:56',null,'','0','productSellAllPrice','900','0','0');
UPDATE storedetail SET  productquantity = '58', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '9';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 9, 0, 0
                    , 170.00, -5, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*170.00," WHERE transferproductid = 12;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('9', '1', '5', '1', '12', 'تحويل منتجات من المخزن', 'storemovementController.php', '63.00', '58', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('9', '4', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 9, 0, 0
                    , 170.00, 5, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('9', '4', '5', '0', '12', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '19', '17', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:56',null,'','0','productSellAllPrice','3060','0','0');
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '19';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 19, 0, 0
                    , 170.00, -17, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*170.00," WHERE transferproductid = 13;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('19', '1', '17', '1', '13', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '13', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('19', '4', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 19, 0, 0
                    , 170.00, 17, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('19', '4', '17', '0', '13', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '36', '1', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:56',null,'','0','productSellAllPrice','155','0','0');
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '36';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 36, 0, 0
                    , 145.00, -1, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*145.00," WHERE transferproductid = 14;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('36', '1', '1', '1', '14', 'تحويل منتجات من المخزن', 'storemovementController.php', '56.00', '55', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('36', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 36, 0, 0
                    , 145.00, 1, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('36', '4', '1', '0', '14', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '66', '11', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:56',null,'','0','productSellAllPrice','1980','0','0');
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '66';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 66, 0, 0
                    , 175.00, -11, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*175.00," WHERE transferproductid = 15;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('66', '1', '11', '1', '15', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '10', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('66', '4', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 66, 0, 0
                    , 175.00, 11, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('66', '4', '11', '0', '15', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '85', '18', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:56',null,'','0','productSellAllPrice','3780','0','0');
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '85';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 85, 0, 0
                    , 205.00, -18, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*205.00," WHERE transferproductid = 16;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('85', '1', '18', '1', '16', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '9', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('85', '4', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 85, 0, 0
                    , 205.00, 18, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('85', '4', '18', '0', '16', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '90', '26', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:56',null,'','0','productSellAllPrice','4810','0','0');
UPDATE storedetail SET  productquantity = '135', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '90';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 90, 0, 0
                    , 165.00, -26, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*165.00," WHERE transferproductid = 17;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '1', '26', '1', '17', 'تحويل منتجات من المخزن', 'storemovementController.php', '161.00', '135', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('90', '4', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 90, 0, 0
                    , 165.00, 26, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '4', '26', '0', '17', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '108', '32', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:56',null,'','0','productSellAllPrice','5280','0','0');
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '108';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 108, 0, 0
                    , 160.00, -32, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2021-11-08*160.00," WHERE transferproductid = 18;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('108', '1', '32', '1', '18', 'تحويل منتجات من المخزن', 'storemovementController.php', '68.00', '36', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('108', '4', '32', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 108, 0, 0
                    , 160.00, 32, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('108', '4', '32', '0', '18', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '109', '34', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:56',null,'','0','productSellAllPrice','6290','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '109';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 109, 0, 0
                    , 185.00, -34, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2021-11-08*185.00," WHERE transferproductid = 19;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('109', '1', '34', '1', '19', 'تحويل منتجات من المخزن', 'storemovementController.php', '58.00', '24', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('109', '4', '34', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 109, 0, 0
                    , 185.00, 34, 0, 0, 1, '2021-11-08 11:49:56')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:56' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('109', '4', '34', '0', '19', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '127', '25', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:56',null,'','0','productSellAllPrice','5500','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '127';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 127, 0, 0
                    , 210.00, -25, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2021-11-08*210.00," WHERE transferproductid = 20;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('127', '1', '25', '1', '20', 'تحويل منتجات من المخزن', 'storemovementController.php', '25.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('127', '4', '25', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 127, 0, 0
                    , 210.00, 25, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('127', '4', '25', '0', '20', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '132', '8', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2240','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '132';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 132, 0, 0
                    , 270.00, -8, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*270.00," WHERE transferproductid = 21;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('132', '1', '8', '1', '21', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('132', '4', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 132, 0, 0
                    , 270.00, 8, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('132', '4', '8', '0', '21', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '133', '9', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2385','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '133';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 133, 0, 0
                    , 255.00, -9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 255.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*255.00," WHERE transferproductid = 22;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('133', '1', '9', '1', '22', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('133', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 133, 0, 0
                    , 255.00, 9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('133', '4', '9', '0', '22', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '219', '24', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','4680','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '219';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 219, 0, 0
                    , 190.00, -24, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*190.00," WHERE transferproductid = 23;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('219', '1', '24', '1', '23', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('219', '4', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 219, 0, 0
                    , 190.00, 24, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('219', '4', '24', '0', '23', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '220', '9', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1890','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '220';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 220, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 24;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('220', '1', '9', '1', '24', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('220', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 220, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('220', '4', '9', '0', '24', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '221', '2', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','360','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '221';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 221, 0, 0
                    , 175.00, -2, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*175.00," WHERE transferproductid = 25;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('221', '1', '2', '1', '25', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('221', '4', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 221, 0, 0
                    , 175.00, 2, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('221', '4', '2', '0', '25', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '222', '2', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','420','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '222';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 222, 0, 0
                    , 205.00, -2, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*205.00," WHERE transferproductid = 26;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('222', '1', '2', '1', '26', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('222', '4', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 222, 0, 0
                    , 205.00, 2, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('222', '4', '2', '0', '26', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '10', '34', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','5610','0','0');
UPDATE storedetail SET  productquantity = '78', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '10';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 10, 0, 0
                    , 155.00, -34, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2021-11-08*155.00," WHERE transferproductid = 27;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('10', '1', '34', '1', '27', 'تحويل منتجات من المخزن', 'storemovementController.php', '112.00', '78', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('10', '4', '34', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 10, 0, 0
                    , 155.00, 34, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('10', '4', '34', '0', '27', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '224', '1', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','210','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '224';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 224, 0, 0
                    , 205.00, -1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*205.00," WHERE transferproductid = 28;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('224', '1', '1', '1', '28', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('224', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 224, 0, 0
                    , 205.00, 1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('224', '4', '1', '0', '28', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '225', '2', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','420','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '225';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 225, 0, 0
                    , 205.00, -2, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*205.00," WHERE transferproductid = 29;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('225', '1', '2', '1', '29', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('225', '4', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 225, 0, 0
                    , 205.00, 2, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('225', '4', '2', '0', '29', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '226', '13', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2730','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '226';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 226, 0, 0
                    , 205.00, -13, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*205.00," WHERE transferproductid = 30;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('226', '1', '13', '1', '30', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('226', '4', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 226, 0, 0
                    , 205.00, 13, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('226', '4', '13', '0', '30', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '227', '23', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','4830','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '227';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 227, 0, 0
                    , 205.00, -23, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*205.00," WHERE transferproductid = 31;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('227', '1', '23', '1', '31', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('227', '4', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 227, 0, 0
                    , 205.00, 23, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('227', '4', '23', '0', '31', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '228', '11', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2310','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '228';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 228, 0, 0
                    , 205.00, -11, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*205.00," WHERE transferproductid = 32;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('228', '1', '11', '1', '32', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('228', '4', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 228, 0, 0
                    , 205.00, 11, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('228', '4', '11', '0', '32', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '134', '32', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','5280','0','0');
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '134';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 134, 0, 0
                    , 150.00, -32, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2021-11-08*150.00," WHERE transferproductid = 33;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('134', '1', '32', '1', '33', 'تحويل منتجات من المخزن', 'storemovementController.php', '59.00', '27', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('134', '4', '32', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 134, 0, 0
                    , 150.00, 32, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('134', '4', '32', '0', '33', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '230', '7', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1295','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '230';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 230, 0, 0
                    , 180.00, -7, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*180.00," WHERE transferproductid = 34;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('230', '1', '7', '1', '34', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('230', '4', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 230, 0, 0
                    , 180.00, 7, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('230', '4', '7', '0', '34', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '231', '18', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2970','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '231';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 231, 0, 0
                    , 160.00, -18, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*160.00," WHERE transferproductid = 35;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('231', '1', '18', '1', '35', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('231', '4', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 231, 0, 0
                    , 160.00, 18, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('231', '4', '18', '0', '35', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '486', '27', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','4995','0','0');
UPDATE storedetail SET  productquantity = '-8', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '486';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 486, 0, 0
                    , 165.00, -27, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*165.00," WHERE transferproductid = 36;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('486', '1', '27', '1', '36', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '-8', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('486', '4', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 486, 0, 0
                    , 165.00, 27, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('486', '4', '27', '0', '36', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '135', '29', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','5365','0','0');
UPDATE storedetail SET  productquantity = '66', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '135';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 135, 0, 0
                    , 165.00, -29, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2021-11-08*165.00," WHERE transferproductid = 37;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('135', '1', '29', '1', '37', 'تحويل منتجات من المخزن', 'storemovementController.php', '95.00', '66', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('135', '4', '29', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 135, 0, 0
                    , 165.00, 29, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('135', '4', '29', '0', '37', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '234', '45', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','8775','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '234';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 234, 0, 0
                    , 190.00, -45, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2021-11-08*190.00," WHERE transferproductid = 38;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('234', '1', '45', '1', '38', 'تحويل منتجات من المخزن', 'storemovementController.php', '45.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('234', '4', '45', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 234, 0, 0
                    , 190.00, 45, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('234', '4', '45', '0', '38', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '235', '12', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2160','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '235';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 235, 0, 0
                    , 175.00, -12, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*175.00," WHERE transferproductid = 39;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('235', '1', '12', '1', '39', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('235', '4', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 235, 0, 0
                    , 175.00, 12, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('235', '4', '12', '0', '39', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '477', '53', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','9010','0','0');
UPDATE storedetail SET  productquantity = '-31', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '477';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 477, 0, 0
                    , 155.00, -53, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-53, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "53*2021-11-08*155.00," WHERE transferproductid = 40;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('477', '1', '53', '1', '40', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '-31', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('477', '4', '53', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 477, 0, 0
                    , 155.00, 53, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+53, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('477', '4', '53', '0', '40', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '53', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '491', '15', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2775','0','0');
UPDATE storedetail SET  productquantity = '7', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '491';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 491, 0, 0
                    , 165.00, -15, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*165.00," WHERE transferproductid = 41;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('491', '1', '15', '1', '41', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '7', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('491', '4', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 491, 0, 0
                    , 165.00, 15, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('491', '4', '15', '0', '41', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '238', '3', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','510','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '238';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 238, 0, 0
                    , 160.00, -3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*160.00," WHERE transferproductid = 42;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('238', '1', '3', '1', '42', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('238', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 238, 0, 0
                    , 160.00, 3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('238', '4', '3', '0', '42', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '239', '4', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','720','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '239';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 239, 0, 0
                    , 170.00, -4, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*170.00," WHERE transferproductid = 43;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('239', '1', '4', '1', '43', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('239', '4', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 239, 0, 0
                    , 170.00, 4, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('239', '4', '4', '0', '43', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '240', '10', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1700','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '240';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 240, 0, 0
                    , 160.00, -10, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*160.00," WHERE transferproductid = 44;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('240', '1', '10', '1', '44', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('240', '4', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 240, 0, 0
                    , 160.00, 10, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('240', '4', '10', '0', '44', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '241', '1', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','200','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '241';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 241, 0, 0
                    , 190.00, -1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*190.00," WHERE transferproductid = 45;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('241', '1', '1', '1', '45', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('241', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 241, 0, 0
                    , 190.00, 1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('241', '4', '1', '0', '45', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '242', '51', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','9945','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '242';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 242, 0, 0
                    , 190.00, -51, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "51*2021-11-08*190.00," WHERE transferproductid = 46;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('242', '1', '51', '1', '46', 'تحويل منتجات من المخزن', 'storemovementController.php', '51.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('242', '4', '51', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 242, 0, 0
                    , 190.00, 51, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('242', '4', '51', '0', '46', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '51', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '243', '1', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','175','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '243';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 243, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 47;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('243', '1', '1', '1', '47', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('243', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 243, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('243', '4', '1', '0', '47', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '244', '19', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','3135','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '244';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 244, 0, 0
                    , 160.00, -19, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*160.00," WHERE transferproductid = 48;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('244', '1', '19', '1', '48', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('244', '4', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 244, 0, 0
                    , 160.00, 19, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('244', '4', '19', '0', '48', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '245', '31', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','6045','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '245';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 245, 0, 0
                    , 190.00, -31, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2021-11-08*190.00," WHERE transferproductid = 49;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('245', '1', '31', '1', '49', 'تحويل منتجات من المخزن', 'storemovementController.php', '31.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('245', '4', '31', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 245, 0, 0
                    , 190.00, 31, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('245', '4', '31', '0', '49', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '246', '10', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1950','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '246';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 246, 0, 0
                    , 190.00, -10, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*190.00," WHERE transferproductid = 50;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('246', '1', '10', '1', '50', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('246', '4', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 246, 0, 0
                    , 190.00, 10, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('246', '4', '10', '0', '50', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '247', '21', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','3780','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '247';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 247, 0, 0
                    , 175.00, -21, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*175.00," WHERE transferproductid = 51;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('247', '1', '21', '1', '51', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('247', '4', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 247, 0, 0
                    , 175.00, 21, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('247', '4', '21', '0', '51', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '248', '1', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','185','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '248';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 248, 0, 0
                    , 180.00, -1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*180.00," WHERE transferproductid = 52;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('248', '1', '1', '1', '52', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('248', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 248, 0, 0
                    , 180.00, 1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('248', '4', '1', '0', '52', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '250', '3', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','555','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '250';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 250, 0, 0
                    , 180.00, -3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*180.00," WHERE transferproductid = 53;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('250', '1', '3', '1', '53', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('250', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 250, 0, 0
                    , 180.00, 3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('250', '4', '3', '0', '53', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '256', '4', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','720','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '256';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 256, 0, 0
                    , 175.00, -4, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*175.00," WHERE transferproductid = 54;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('256', '1', '4', '1', '54', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('256', '4', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 256, 0, 0
                    , 175.00, 4, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('256', '4', '4', '0', '54', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '257', '2', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','330','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '257';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 257, 0, 0
                    , 160.00, -2, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*160.00," WHERE transferproductid = 55;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('257', '1', '2', '1', '55', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('257', '4', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 257, 0, 0
                    , 160.00, 2, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('257', '4', '2', '0', '55', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '258', '12', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2340','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '258';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 258, 0, 0
                    , 190.00, -12, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*190.00," WHERE transferproductid = 56;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('258', '1', '12', '1', '56', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('258', '4', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 258, 0, 0
                    , 190.00, 12, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('258', '4', '12', '0', '56', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '259', '32', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','6240','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '259';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 259, 0, 0
                    , 190.00, -32, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2021-11-08*190.00," WHERE transferproductid = 57;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('259', '1', '32', '1', '57', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('259', '4', '32', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 259, 0, 0
                    , 190.00, 32, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('259', '4', '32', '0', '57', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '260', '3', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','525','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '260';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 260, 0, 0
                    , 170.00, -3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*170.00," WHERE transferproductid = 58;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('260', '1', '3', '1', '58', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('260', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 260, 0, 0
                    , 170.00, 3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('260', '4', '3', '0', '58', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '261', '1', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','175','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '261';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 261, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 59;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('261', '1', '1', '1', '59', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('261', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 261, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('261', '4', '1', '0', '59', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '262', '3', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','525','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '262';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 262, 0, 0
                    , 170.00, -3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*170.00," WHERE transferproductid = 60;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('262', '1', '3', '1', '60', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('262', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 262, 0, 0
                    , 170.00, 3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('262', '4', '3', '0', '60', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '263', '12', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1980','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '263';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 263, 0, 0
                    , 160.00, -12, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*160.00," WHERE transferproductid = 61;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('263', '1', '12', '1', '61', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('263', '4', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 263, 0, 0
                    , 160.00, 12, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('263', '4', '12', '0', '61', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '264', '2', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','350','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '264';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 264, 0, 0
                    , 170.00, -2, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*170.00," WHERE transferproductid = 62;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('264', '1', '2', '1', '62', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('264', '4', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 264, 0, 0
                    , 170.00, 2, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('264', '4', '2', '0', '62', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '265', '10', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1750','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '265';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 265, 0, 0
                    , 170.00, -10, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*170.00," WHERE transferproductid = 63;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('265', '1', '10', '1', '63', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('265', '4', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 265, 0, 0
                    , 170.00, 10, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('265', '4', '10', '0', '63', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '266', '6', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1050','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '266';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 266, 0, 0
                    , 170.00, -6, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*170.00," WHERE transferproductid = 64;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('266', '1', '6', '1', '64', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('266', '4', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 266, 0, 0
                    , 170.00, 6, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('266', '4', '6', '0', '64', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '267', '1', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','175','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '267';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 267, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 65;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('267', '1', '1', '1', '65', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('267', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 267, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('267', '4', '1', '0', '65', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '268', '8', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1680','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '268';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 268, 0, 0
                    , 205.00, -8, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*205.00," WHERE transferproductid = 66;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('268', '1', '8', '1', '66', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('268', '4', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 268, 0, 0
                    , 205.00, 8, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('268', '4', '8', '0', '66', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '269', '30', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','5400','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '269';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 269, 0, 0
                    , 180.00, -30, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2021-11-08*180.00," WHERE transferproductid = 67;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('269', '1', '30', '1', '67', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('269', '4', '30', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 269, 0, 0
                    , 180.00, 30, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('269', '4', '30', '0', '67', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '270', '9', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1890','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '270';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 270, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 68;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('270', '1', '9', '1', '68', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('270', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 270, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('270', '4', '9', '0', '68', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '271', '9', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1890','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '271';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 271, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 69;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('271', '1', '9', '1', '69', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('271', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 271, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('271', '4', '9', '0', '69', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '272', '9', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1890','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '272';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 272, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 70;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('272', '1', '9', '1', '70', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('272', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 272, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('272', '4', '9', '0', '70', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '273', '9', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1890','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '273';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 273, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 71;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('273', '1', '9', '1', '71', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('273', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 273, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('273', '4', '9', '0', '71', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '274', '9', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1890','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '274';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 274, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 72;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('274', '1', '9', '1', '72', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('274', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 274, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('274', '4', '9', '0', '72', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '275', '17', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','3570','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '275';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 275, 0, 0
                    , 205.00, -17, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*205.00," WHERE transferproductid = 73;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('275', '1', '17', '1', '73', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('275', '4', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 275, 0, 0
                    , 205.00, 17, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('275', '4', '17', '0', '73', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '277', '35', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','7350','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '277';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 277, 0, 0
                    , 205.00, -35, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2021-11-08*205.00," WHERE transferproductid = 74;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('277', '1', '35', '1', '74', 'تحويل منتجات من المخزن', 'storemovementController.php', '35.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('277', '4', '35', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 277, 0, 0
                    , 205.00, 35, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('277', '4', '35', '0', '74', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '278', '22', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','4620','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '278';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 278, 0, 0
                    , 205.00, -22, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*205.00," WHERE transferproductid = 75;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('278', '1', '22', '1', '75', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('278', '4', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 278, 0, 0
                    , 205.00, 22, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('278', '4', '22', '0', '75', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '279', '33', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','6930','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '279';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 279, 0, 0
                    , 205.00, -33, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2021-11-08*205.00," WHERE transferproductid = 76;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('279', '1', '33', '1', '76', 'تحويل منتجات من المخزن', 'storemovementController.php', '33.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('279', '4', '33', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 279, 0, 0
                    , 205.00, 33, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('279', '4', '33', '0', '76', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '280', '1', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','155','0','0');
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '280';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 280, 0, 0
                    , 150.00, -1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*150.00," WHERE transferproductid = 77;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('280', '1', '1', '1', '77', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '9', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('280', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 280, 0, 0
                    , 150.00, 1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('280', '4', '1', '0', '77', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '281', '13', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2015','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '281';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 281, 0, 0
                    , 150.00, -13, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*150.00," WHERE transferproductid = 78;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('281', '1', '13', '1', '78', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('281', '4', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 281, 0, 0
                    , 150.00, 13, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('281', '4', '13', '0', '78', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '282', '38', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','5890','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '282';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 282, 0, 0
                    , 150.00, -38, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "38*2021-11-08*150.00," WHERE transferproductid = 79;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('282', '1', '38', '1', '79', 'تحويل منتجات من المخزن', 'storemovementController.php', '38.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('282', '4', '38', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 282, 0, 0
                    , 150.00, 38, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('282', '4', '38', '0', '79', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '38', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '283', '14', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2170','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '283';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 283, 0, 0
                    , 150.00, -14, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*150.00," WHERE transferproductid = 80;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('283', '1', '14', '1', '80', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('283', '4', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 283, 0, 0
                    , 150.00, 14, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('283', '4', '14', '0', '80', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '284', '42', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','6510','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '284';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 284, 0, 0
                    , 150.00, -42, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2021-11-08*150.00," WHERE transferproductid = 81;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('284', '1', '42', '1', '81', 'تحويل منتجات من المخزن', 'storemovementController.php', '42.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('284', '4', '42', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 284, 0, 0
                    , 150.00, 42, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('284', '4', '42', '0', '81', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '285', '23', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','4485','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '285';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 285, 0, 0
                    , 190.00, -23, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*190.00," WHERE transferproductid = 82;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('285', '1', '23', '1', '82', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('285', '4', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 285, 0, 0
                    , 190.00, 23, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('285', '4', '23', '0', '82', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '286', '27', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','4185','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '286';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 286, 0, 0
                    , 150.00, -27, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*150.00," WHERE transferproductid = 83;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('286', '1', '27', '1', '83', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('286', '4', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 286, 0, 0
                    , 150.00, 27, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('286', '4', '27', '0', '83', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '287', '3', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','465','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '287';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 287, 0, 0
                    , 150.00, -3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*150.00," WHERE transferproductid = 84;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('287', '1', '3', '1', '84', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('287', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 287, 0, 0
                    , 150.00, 3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('287', '4', '3', '0', '84', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '288', '51', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','8415','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '288';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 288, 0, 0
                    , 160.00, -51, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "51*2021-11-08*160.00," WHERE transferproductid = 85;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('288', '1', '51', '1', '85', 'تحويل منتجات من المخزن', 'storemovementController.php', '51.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('288', '4', '51', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 288, 0, 0
                    , 160.00, 51, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('288', '4', '51', '0', '85', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '51', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '289', '11', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1815','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '289';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 289, 0, 0
                    , 160.00, -11, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*160.00," WHERE transferproductid = 86;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('289', '1', '11', '1', '86', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('289', '4', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 289, 0, 0
                    , 160.00, 11, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('289', '4', '11', '0', '86', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '290', '4', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','680','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '290';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 290, 0, 0
                    , 165.00, -4, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*165.00," WHERE transferproductid = 87;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('290', '1', '4', '1', '87', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('290', '4', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 290, 0, 0
                    , 165.00, 4, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('290', '4', '4', '0', '87', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '291', '17', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2805','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '291';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 291, 0, 0
                    , 160.00, -17, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*160.00," WHERE transferproductid = 88;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('291', '1', '17', '1', '88', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('291', '4', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 291, 0, 0
                    , 160.00, 17, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('291', '4', '17', '0', '88', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '292', '12', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1872','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '292';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 292, 0, 0
                    , 160.00, -12, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*160.00," WHERE transferproductid = 89;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('292', '1', '12', '1', '89', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('292', '4', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 292, 0, 0
                    , 160.00, 12, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('292', '4', '12', '0', '89', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '293', '20', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','3300','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '293';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 293, 0, 0
                    , 160.00, -20, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*160.00," WHERE transferproductid = 90;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('293', '1', '20', '1', '90', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('293', '4', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 293, 0, 0
                    , 160.00, 20, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('293', '4', '20', '0', '90', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '294', '31', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','5735','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '294';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 294, 0, 0
                    , 180.00, -31, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2021-11-08*180.00," WHERE transferproductid = 91;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('294', '1', '31', '1', '91', 'تحويل منتجات من المخزن', 'storemovementController.php', '31.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('294', '4', '31', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 294, 0, 0
                    , 180.00, 31, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('294', '4', '31', '0', '91', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '295', '8', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1360','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '295';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 295, 0, 0
                    , 165.00, -8, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*165.00," WHERE transferproductid = 92;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('295', '1', '8', '1', '92', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('295', '4', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 295, 0, 0
                    , 165.00, 8, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('295', '4', '8', '0', '92', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '296', '37', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','6845','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '296';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 296, 0, 0
                    , 180.00, -37, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "37*2021-11-08*180.00," WHERE transferproductid = 93;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('296', '1', '37', '1', '93', 'تحويل منتجات من المخزن', 'storemovementController.php', '37.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('296', '4', '37', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 296, 0, 0
                    , 180.00, 37, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('296', '4', '37', '0', '93', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '37', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '297', '20', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','3300','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '297';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 297, 0, 0
                    , 160.00, -20, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*160.00," WHERE transferproductid = 94;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('297', '1', '20', '1', '94', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('297', '4', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 297, 0, 0
                    , 160.00, 20, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('297', '4', '20', '0', '94', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '298', '19', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','3515','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '298';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 298, 0, 0
                    , 180.00, -19, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*180.00," WHERE transferproductid = 95;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('298', '1', '19', '1', '95', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('298', '4', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 298, 0, 0
                    , 180.00, 19, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('298', '4', '19', '0', '95', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '299', '66', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','10890','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '299';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 299, 0, 0
                    , 155.00, -66, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-66, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "66*2021-11-08*155.00," WHERE transferproductid = 96;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('299', '1', '66', '1', '96', 'تحويل منتجات من المخزن', 'storemovementController.php', '66.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('299', '4', '66', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 299, 0, 0
                    , 155.00, 66, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+66, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('299', '4', '66', '0', '96', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '66', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '300', '34', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','7140','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '300';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 300, 0, 0
                    , 205.00, -34, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2021-11-08*205.00," WHERE transferproductid = 97;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('300', '1', '34', '1', '97', 'تحويل منتجات من المخزن', 'storemovementController.php', '34.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('300', '4', '34', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 300, 0, 0
                    , 205.00, 34, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('300', '4', '34', '0', '97', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '301', '24', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','4680','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '301';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 301, 0, 0
                    , 190.00, -24, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*190.00," WHERE transferproductid = 98;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('301', '1', '24', '1', '98', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('301', '4', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 301, 0, 0
                    , 190.00, 24, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('301', '4', '24', '0', '98', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '302', '13', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2730','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '302';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 302, 0, 0
                    , 200.00, -13, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*200.00," WHERE transferproductid = 99;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('302', '1', '13', '1', '99', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('302', '4', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 302, 0, 0
                    , 200.00, 13, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('302', '4', '13', '0', '99', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '312', '13', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2015','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '312';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 312, 0, 0
                    , 150.00, -13, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*150.00," WHERE transferproductid = 100;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('312', '1', '13', '1', '100', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('312', '4', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 312, 0, 0
                    , 150.00, 13, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('312', '4', '13', '0', '100', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '315', '18', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','3150','0','0');
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '315';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 315, 0, 0
                    , 170.00, -18, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*170.00," WHERE transferproductid = 101;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('315', '1', '18', '1', '101', 'تحويل منتجات من المخزن', 'storemovementController.php', '83.00', '65', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('315', '4', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 315, 0, 0
                    , 170.00, 18, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('315', '4', '18', '0', '101', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '324', '83', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','11205','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '324';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 324, 0, 0
                    , 130.00, -83, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 130.00,
                        buyQuantity =buyQuantity+-83, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "83*2021-11-08*130.00," WHERE transferproductid = 102;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('324', '1', '83', '1', '102', 'تحويل منتجات من المخزن', 'storemovementController.php', '83.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('324', '4', '83', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 324, 0, 0
                    , 130.00, 83, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+83, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('324', '4', '83', '0', '102', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '83', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '325', '84', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','9240','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '325';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 325, 0, 0
                    , 100.00, -84, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-84, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "84*2021-11-08*100.00," WHERE transferproductid = 103;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('325', '1', '84', '1', '103', 'تحويل منتجات من المخزن', 'storemovementController.php', '84.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('325', '4', '84', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 325, 0, 0
                    , 100.00, 84, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+84, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('325', '4', '84', '0', '103', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '84', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '382', '31', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','6200','0','0');
UPDATE storedetail SET  productquantity = '87', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '382';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 382, 0, 0
                    , 190.00, -31, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2021-11-08*190.00," WHERE transferproductid = 104;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '1', '31', '1', '104', 'تحويل منتجات من المخزن', 'storemovementController.php', '118.00', '87', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('382', '4', '31', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 382, 0, 0
                    , 190.00, 31, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '4', '31', '0', '104', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '383', '5', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1050','0','0');
UPDATE storedetail SET  productquantity = '79', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '383';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 383, 0, 0
                    , 185.00, -5, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*185.00," WHERE transferproductid = 105;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '1', '5', '1', '105', 'تحويل منتجات من المخزن', 'storemovementController.php', '84.00', '79', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('383', '4', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 383, 0, 0
                    , 185.00, 5, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '4', '5', '0', '105', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '384', '11', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2200','0','0');
UPDATE storedetail SET  productquantity = '46', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '384';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 384, 0, 0
                    , 185.00, -11, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*185.00," WHERE transferproductid = 106;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '1', '11', '1', '106', 'تحويل منتجات من المخزن', 'storemovementController.php', '57.00', '46', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('384', '4', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 384, 0, 0
                    , 185.00, 11, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '4', '11', '0', '106', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '385', '16', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','3200','0','0');
UPDATE storedetail SET  productquantity = '82', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '385';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 385, 0, 0
                    , 185.00, -16, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*185.00," WHERE transferproductid = 107;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '1', '16', '1', '107', 'تحويل منتجات من المخزن', 'storemovementController.php', '98.00', '82', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('385', '4', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 385, 0, 0
                    , 185.00, 16, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '4', '16', '0', '107', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '386', '20', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','4000','0','0');
UPDATE storedetail SET  productquantity = '41', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '386';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 386, 0, 0
                    , 185.00, -20, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*185.00," WHERE transferproductid = 108;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('386', '1', '20', '1', '108', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '41', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('386', '4', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 386, 0, 0
                    , 185.00, 20, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('386', '4', '20', '0', '108', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '387', '10', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1900','0','0');
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '387';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 387, 0, 0
                    , 175.00, -10, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*175.00," WHERE transferproductid = 109;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('387', '1', '10', '1', '109', 'تحويل منتجات من المخزن', 'storemovementController.php', '43.00', '33', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('387', '4', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 387, 0, 0
                    , 175.00, 10, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('387', '4', '10', '0', '109', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '391', '16', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','3200','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '391';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 391, 0, 0
                    , 190.00, -16, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*190.00," WHERE transferproductid = 110;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('391', '1', '16', '1', '110', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('391', '4', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 391, 0, 0
                    , 190.00, 16, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('391', '4', '16', '0', '110', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '392', '21', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','4200','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '392';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 392, 0, 0
                    , 190.00, -21, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*190.00," WHERE transferproductid = 111;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('392', '1', '21', '1', '111', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('392', '4', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 392, 0, 0
                    , 190.00, 21, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('392', '4', '21', '0', '111', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '400', '82', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','15580','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '400';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 400, 0, 0
                    , 180.00, -82, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-82, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "82*2021-11-08*180.00," WHERE transferproductid = 112;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('400', '1', '82', '1', '112', 'تحويل منتجات من المخزن', 'storemovementController.php', '82.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('400', '4', '82', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 400, 0, 0
                    , 180.00, 82, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+82, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('400', '4', '82', '0', '112', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '82', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '397', '74', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','15910','0','0');
UPDATE storedetail SET  productquantity = '191', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '397';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 397, 0, 0
                    , 195.00, -74, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-74, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "74*2021-11-08*195.00," WHERE transferproductid = 113;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('397', '1', '74', '1', '113', 'تحويل منتجات من المخزن', 'storemovementController.php', '265.00', '191', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('397', '4', '74', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 397, 0, 0
                    , 195.00, 74, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+74, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('397', '4', '74', '0', '113', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '74', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '401', '6', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','1440','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '401';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 401, 0, 0
                    , 230.00, -6, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 230.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*230.00," WHERE transferproductid = 114;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('401', '1', '6', '1', '114', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('401', '4', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 401, 0, 0
                    , 230.00, 6, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('401', '4', '6', '0', '114', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '402', '19', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','4750','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '402';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 402, 0, 0
                    , 240.00, -19, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*240.00," WHERE transferproductid = 115;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('402', '1', '19', '1', '115', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('402', '4', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 402, 0, 0
                    , 240.00, 19, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('402', '4', '19', '0', '115', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '403', '3', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','765','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '403';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 403, 0, 0
                    , 240.00, -3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*240.00," WHERE transferproductid = 116;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('403', '1', '3', '1', '116', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('403', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 403, 0, 0
                    , 240.00, 3, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('403', '4', '3', '0', '116', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '404', '1', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','230','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '404';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 404, 0, 0
                    , 215.00, -1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*215.00," WHERE transferproductid = 117;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('404', '1', '1', '1', '117', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('404', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 404, 0, 0
                    , 215.00, 1, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('404', '4', '1', '0', '117', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '442', '150', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','21750','0','0');
UPDATE storedetail SET  productquantity = '695', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '442';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 442, 0, 0
                    , 125.00, -150, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-150, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "150*2021-11-08*125.00," WHERE transferproductid = 118;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('442', '1', '150', '1', '118', 'تحويل منتجات من المخزن', 'storemovementController.php', '845.00', '695', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('442', '4', '150', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 442, 0, 0
                    , 125.00, 150, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+150, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('442', '4', '150', '0', '118', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '150', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '448', '15', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','2475','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '448';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 448, 0, 0
                    , 160.00, -15, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*160.00," WHERE transferproductid = 119;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('448', '1', '15', '1', '119', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('448', '4', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 448, 0, 0
                    , 160.00, 15, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('448', '4', '15', '0', '119', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '458', '20', '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','3900','0','0');
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '458';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 458, 0, 0
                    , 175.00, -20, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*175.00," WHERE transferproductid = 120;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('458', '1', '20', '1', '120', 'تحويل منتجات من المخزن', 'storemovementController.php', '116.00', '96', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('458', '4', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 458, 0, 0
                    , 175.00, 20, 0, 0, 1, '2021-11-08 11:49:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 11:49:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('458', '4', '20', '0', '120', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '450', null, '2021-11-08', '1', '0','2',null,null,'2021-11-08 11:49:57',null,'','0','productSellAllPrice','0','0','0');
ROLLBACK;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 08:19:58";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 11:49:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 11:49:58', '1', 'error', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 08:20:00";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 11:50:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 11:50:00', '1', 'show', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 08:20:07";
UPDATE user SET loginip = "197.56.87.123", lastactivetime = "2021-11-08 11:50:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 11:50:07', '1', 'editshowstyle2', '197.56.87.123', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:00:24";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:30:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 12:30:24', '1', 'editshowstyle2', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:01:22";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:31:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 12:31:22', '1', '', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:14:29";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:44:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 12:44:29', '1', 'add', '197.56.63.195', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(3,1,4,9,5,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 12:44:29',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '58', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '9';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 9, 0, 0
                    , 170.00, -5, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*170.00," WHERE transferproductid = 121;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('9', '1', '5', '1', '121', 'تحويل منتجات من المخزن', 'storemovementController.php', '63.00', '58', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('9', '4', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 9, 0, 0
                    , 170.00, 5, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('9', '4', '5', '0', '121', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '19', '17', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '19';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 19, 0, 0
                    , 170.00, -17, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*170.00," WHERE transferproductid = 122;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('19', '1', '17', '1', '122', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '13', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('19', '4', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 19, 0, 0
                    , 170.00, 17, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('19', '4', '17', '0', '122', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '36', '1', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '36';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 36, 0, 0
                    , 145.00, -1, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*145.00," WHERE transferproductid = 123;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('36', '1', '1', '1', '123', 'تحويل منتجات من المخزن', 'storemovementController.php', '56.00', '55', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('36', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 36, 0, 0
                    , 145.00, 1, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('36', '4', '1', '0', '123', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '66', '11', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '66';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 66, 0, 0
                    , 175.00, -11, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*175.00," WHERE transferproductid = 124;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('66', '1', '11', '1', '124', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '10', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('66', '4', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 66, 0, 0
                    , 175.00, 11, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('66', '4', '11', '0', '124', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '85', '18', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '85';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 85, 0, 0
                    , 205.00, -18, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*205.00," WHERE transferproductid = 125;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('85', '1', '18', '1', '125', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '9', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('85', '4', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 85, 0, 0
                    , 205.00, 18, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('85', '4', '18', '0', '125', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '90', '26', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '135', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '90';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 90, 0, 0
                    , 165.00, -26, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*165.00," WHERE transferproductid = 126;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '1', '26', '1', '126', 'تحويل منتجات من المخزن', 'storemovementController.php', '161.00', '135', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('90', '4', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 90, 0, 0
                    , 165.00, 26, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '4', '26', '0', '126', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '108', '32', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '108';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 108, 0, 0
                    , 160.00, -32, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2021-11-08*160.00," WHERE transferproductid = 127;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('108', '1', '32', '1', '127', 'تحويل منتجات من المخزن', 'storemovementController.php', '68.00', '36', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('108', '4', '32', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 108, 0, 0
                    , 160.00, 32, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('108', '4', '32', '0', '127', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '109', '34', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '109';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 109, 0, 0
                    , 185.00, -34, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2021-11-08*185.00," WHERE transferproductid = 128;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('109', '1', '34', '1', '128', 'تحويل منتجات من المخزن', 'storemovementController.php', '58.00', '24', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('109', '4', '34', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 109, 0, 0
                    , 185.00, 34, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('109', '4', '34', '0', '128', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '127', '25', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '127';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 127, 0, 0
                    , 210.00, -25, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2021-11-08*210.00," WHERE transferproductid = 129;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('127', '1', '25', '1', '129', 'تحويل منتجات من المخزن', 'storemovementController.php', '25.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('127', '4', '25', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 127, 0, 0
                    , 210.00, 25, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('127', '4', '25', '0', '129', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '132', '8', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '132';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 132, 0, 0
                    , 270.00, -8, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*270.00," WHERE transferproductid = 130;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('132', '1', '8', '1', '130', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('132', '4', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 132, 0, 0
                    , 270.00, 8, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('132', '4', '8', '0', '130', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '133', '9', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '133';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 133, 0, 0
                    , 255.00, -9, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 255.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*255.00," WHERE transferproductid = 131;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('133', '1', '9', '1', '131', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('133', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 133, 0, 0
                    , 255.00, 9, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('133', '4', '9', '0', '131', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '219', '24', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '219';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 219, 0, 0
                    , 190.00, -24, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*190.00," WHERE transferproductid = 132;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('219', '1', '24', '1', '132', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('219', '4', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 219, 0, 0
                    , 190.00, 24, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('219', '4', '24', '0', '132', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '220', '9', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '220';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 220, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 133;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('220', '1', '9', '1', '133', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('220', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 220, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('220', '4', '9', '0', '133', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '221', '2', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '221';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 221, 0, 0
                    , 175.00, -2, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*175.00," WHERE transferproductid = 134;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('221', '1', '2', '1', '134', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('221', '4', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 221, 0, 0
                    , 175.00, 2, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('221', '4', '2', '0', '134', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '222', '2', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:29',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '222';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 222, 0, 0
                    , 205.00, -2, 0, 0, 1, '2021-11-08 12:44:29')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:29' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*205.00," WHERE transferproductid = 135;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('222', '1', '2', '1', '135', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('222', '4', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 222, 0, 0
                    , 205.00, 2, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('222', '4', '2', '0', '135', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '223', '34', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:30',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '223';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 223, 0, 0
                    , 160.00, -34, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2021-11-08*160.00," WHERE transferproductid = 136;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('223', '1', '34', '1', '136', 'تحويل منتجات من المخزن', 'storemovementController.php', '34.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('223', '4', '34', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 223, 0, 0
                    , 160.00, 34, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('223', '4', '34', '0', '136', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '224', '1', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:30',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '224';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 224, 0, 0
                    , 205.00, -1, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*205.00," WHERE transferproductid = 137;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('224', '1', '1', '1', '137', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('224', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 224, 0, 0
                    , 205.00, 1, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('224', '4', '1', '0', '137', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '225', '2', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:30',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '225';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 225, 0, 0
                    , 205.00, -2, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*205.00," WHERE transferproductid = 138;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('225', '1', '2', '1', '138', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('225', '4', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 225, 0, 0
                    , 205.00, 2, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('225', '4', '2', '0', '138', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '226', '13', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:30',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '226';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 226, 0, 0
                    , 205.00, -13, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*205.00," WHERE transferproductid = 139;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('226', '1', '13', '1', '139', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('226', '4', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 226, 0, 0
                    , 205.00, 13, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('226', '4', '13', '0', '139', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '227', '23', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:30',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '227';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 227, 0, 0
                    , 205.00, -23, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*205.00," WHERE transferproductid = 140;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('227', '1', '23', '1', '140', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('227', '4', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 227, 0, 0
                    , 205.00, 23, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('227', '4', '23', '0', '140', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '228', '11', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:30',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '228';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 228, 0, 0
                    , 205.00, -11, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*205.00," WHERE transferproductid = 141;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('228', '1', '11', '1', '141', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('228', '4', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 228, 0, 0
                    , 205.00, 11, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('228', '4', '11', '0', '141', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '229', '32', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:30',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '229';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 229, 0, 0
                    , 150.00, -32, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2021-11-08*150.00," WHERE transferproductid = 142;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('229', '1', '32', '1', '142', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('229', '4', '32', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 229, 0, 0
                    , 150.00, 32, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('229', '4', '32', '0', '142', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '230', '7', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:30',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '230';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 230, 0, 0
                    , 180.00, -7, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*180.00," WHERE transferproductid = 143;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('230', '1', '7', '1', '143', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('230', '4', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 230, 0, 0
                    , 180.00, 7, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('230', '4', '7', '0', '143', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '231', '18', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:30',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '231';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 231, 0, 0
                    , 160.00, -18, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*160.00," WHERE transferproductid = 144;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('231', '1', '18', '1', '144', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('231', '4', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 231, 0, 0
                    , 160.00, 18, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('231', '4', '18', '0', '144', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '232', '27', '2021-11-08', '1', '0','3',null,null,'2021-11-08 12:44:30',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '232';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 232, 0, 0
                    , 180.00, -27, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*180.00," WHERE transferproductid = 145;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('232', '1', '27', '1', '145', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('232', '4', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 232, 0, 0
                    , 180.00, 27, 0, 0, 1, '2021-11-08 12:44:30')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 12:44:30' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('232', '4', '27', '0', '145', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:14:30";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:44:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 12:44:30', '1', 'sucess', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:14:32";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:44:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 12:44:32', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:14:37";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:44:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 12:44:37', '1', 'editshowstyle2', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:14:40";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:44:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-08 12:44:40', '1', 'addsellBill', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:14:52";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:44:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientController.php', '2021-11-08 12:44:52', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:15:00";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:45:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientController.php', '2021-11-08 12:45:00', '1', 'edit', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:15:41";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:45:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientController.php', '2021-11-08 12:45:41', '1', 'update', '197.56.63.195', '', 'DESKTOP');
UPDATE tamweenclientdetail SET clientid = '3', noOfPersonsTamween = '0', noOfPersonsDa3m = '0', cardNum = '', cardPassword = '' WHERE id = '2';
UPDATE accountstree SET name = 'احمد عبد اللة', customName = 'احمد عبد اللة', parent = '23', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-08', itemtype2 = '1', theValue = '0.00', theOrder = '0', layingOrder = '',reportid = null WHERE id = '56';
UPDATE client SET clientname = 'احمد عبد اللة', clientaddress = '', clientphone = '', clientmobile = '', clientdetails = '', conditions = '0', clientdate = '2021-11-08 12:45:41', userid = '1'  , clientareaid = '0'  ,clientcode = '',dailyentryid = '554' , rondomtxt = '',clientStoreIds = '2', obygyPatientId = '0' , debtLimit='0' , typeclientid=',',priceTypeId='-1',lastEditUser = '1',card_number = '0',file_faida = '',specialDiscount = '0',specialDiscountVal = '0',file = '',mandobCollectRatio='0',clientRFID = '',postponeDays='0' WHERE clientid = '3';
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:15:42";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:45:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('clientController.php', '2021-11-08 12:45:42', '1', 'sucess', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:15:44";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:45:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-08 12:45:44', '1', 'addsellBill', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE userid = 1;
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;
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-08 09:16:28";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:46:28", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-08 12:46:28', '6', '', '197.56.63.195', '', '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-08 09:16:28";
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-08 09:16:30";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 12:46:30", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-08 12:46:30', '6', 'addsellBill', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:29:17";
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:29:36";
UPDATE user SET loginip = "" WHERE userid = 6;
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-08 09:33:07";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:03:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-08 13:03:08', '1', '', '197.56.63.195', '', '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-08 09:33:08";
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-08 09:33:38";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:03:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('usergroupController.php', '2021-11-08 13:03:38', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:33:50";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:03:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('userController.php', '2021-11-08 13:03:50', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:33:59";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:03:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('userController.php', '2021-11-08 13:03:59', '1', 'edit', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:34:25";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:04:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('menuurController.php', '2021-11-08 13:04:25', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:34:38";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:04:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-08 13:04:38', '1', 'addsellBill', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:35:18";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:05:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('userController.php', '2021-11-08 13:05:18', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:35:30";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:05:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('userController.php', '2021-11-08 13:05:30', '1', 'edit', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:36:22";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:06:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('userController.php', '2021-11-08 13:06:22', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:36:26";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:06:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('userController.php', '2021-11-08 13:06:26', '1', 'edit', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:37:06";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:07:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('userController.php', '2021-11-08 13:07:06', '1', 'edit', '197.56.63.195', '', '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-08 09:38:36";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:08:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-08 13:08:36', '1', '', '197.56.63.195', '', '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-08 09:38:36";
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-08 09:38:42";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:08:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('userController.php', '2021-11-08 13:08:42', '1', 'edit', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:39:26";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:09:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('userController.php', '2021-11-08 13:09:26', '1', 'update', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET username = 'admin', password = '10909060', usergroupid = '1', employeename = 'admin', currentdate = '2021-11-07', conditions = '0', saveid = '1'  , userstoreid ='0' ,awardrate = '0.00' ,searchinonesave = '0', branchId = '0', question = 'what is my question', answer = 'how',blockedByLimits = '0',directSaveBills = '0',userstoreidDef='1',empid='0',obygyDoctorId = '0'  WHERE userid = '1';
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:39:27";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:09:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('userController.php', '2021-11-08 13:09:27', '1', 'sucess', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:39:29";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:09:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('userController.php', '2021-11-08 13:09:29', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE userid = 1;
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;
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-08 09:39:59";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:10:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-08 13:10:00', '1', '', '197.56.63.195', '', '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-08 09:40:00";
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-08 09:40:39";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:10:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-08 13:10:39', '1', 'addsellBill', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:41:16";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:11:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:11:16', '1', '', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:43:03";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:13:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-08 13:13:03', '1', '', '197.56.63.195', '', '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-08 09:43:04";
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 userid = 1;
UPDATE user SET loginip = "" WHERE userid = 1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 09:49:22";
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-08 09:49:38";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:19:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-08 13:19:38', '1', '', '197.56.63.195', '', '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-08 09:49:38";
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-08 09:49:57";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:19:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:19:57', '1', '', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:00:07";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:30:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:30:07', '1', 'add', '197.56.63.195', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(4,1,4,233,29,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 13:30:07',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '233';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 233, 0, 0
                    , 175.00, -29, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2021-11-08*175.00," WHERE transferproductid = 146;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('233', '1', '29', '1', '146', 'تحويل منتجات من المخزن', 'storemovementController.php', '29.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('233', '4', '29', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 233, 0, 0
                    , 175.00, 29, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('233', '4', '29', '0', '146', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '234', '45', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '234';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 234, 0, 0
                    , 190.00, -45, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2021-11-08*190.00," WHERE transferproductid = 147;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('234', '1', '45', '1', '147', 'تحويل منتجات من المخزن', 'storemovementController.php', '45.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('234', '4', '45', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 234, 0, 0
                    , 190.00, 45, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('234', '4', '45', '0', '147', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '235', '12', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '235';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 235, 0, 0
                    , 175.00, -12, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*175.00," WHERE transferproductid = 148;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('235', '1', '12', '1', '148', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('235', '4', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 235, 0, 0
                    , 175.00, 12, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('235', '4', '12', '0', '148', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '236', '53', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '236';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 236, 0, 0
                    , 160.00, -53, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-53, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "53*2021-11-08*160.00," WHERE transferproductid = 149;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('236', '1', '53', '1', '149', 'تحويل منتجات من المخزن', 'storemovementController.php', '53.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('236', '4', '53', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 236, 0, 0
                    , 160.00, 53, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+53, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('236', '4', '53', '0', '149', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '53', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '237', '15', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '237';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 237, 0, 0
                    , 175.00, -15, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*175.00," WHERE transferproductid = 150;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('237', '1', '15', '1', '150', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('237', '4', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 237, 0, 0
                    , 175.00, 15, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('237', '4', '15', '0', '150', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '238', '3', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '238';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 238, 0, 0
                    , 160.00, -3, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*160.00," WHERE transferproductid = 151;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('238', '1', '3', '1', '151', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('238', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 238, 0, 0
                    , 160.00, 3, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('238', '4', '3', '0', '151', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '239', '4', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '239';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 239, 0, 0
                    , 170.00, -4, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*170.00," WHERE transferproductid = 152;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('239', '1', '4', '1', '152', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('239', '4', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 239, 0, 0
                    , 170.00, 4, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('239', '4', '4', '0', '152', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '240', '10', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '240';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 240, 0, 0
                    , 160.00, -10, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*160.00," WHERE transferproductid = 153;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('240', '1', '10', '1', '153', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('240', '4', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 240, 0, 0
                    , 160.00, 10, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('240', '4', '10', '0', '153', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '241', '1', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '241';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 241, 0, 0
                    , 190.00, -1, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*190.00," WHERE transferproductid = 154;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('241', '1', '1', '1', '154', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('241', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 241, 0, 0
                    , 190.00, 1, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('241', '4', '1', '0', '154', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '242', '51', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '242';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 242, 0, 0
                    , 190.00, -51, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "51*2021-11-08*190.00," WHERE transferproductid = 155;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('242', '1', '51', '1', '155', 'تحويل منتجات من المخزن', 'storemovementController.php', '51.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('242', '4', '51', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 242, 0, 0
                    , 190.00, 51, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('242', '4', '51', '0', '155', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '51', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '243', '1', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '243';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 243, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 156;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('243', '1', '1', '1', '156', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('243', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 243, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('243', '4', '1', '0', '156', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '244', '19', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '244';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 244, 0, 0
                    , 160.00, -19, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*160.00," WHERE transferproductid = 157;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('244', '1', '19', '1', '157', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('244', '4', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 244, 0, 0
                    , 160.00, 19, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('244', '4', '19', '0', '157', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '245', '31', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '245';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 245, 0, 0
                    , 190.00, -31, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2021-11-08*190.00," WHERE transferproductid = 158;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('245', '1', '31', '1', '158', 'تحويل منتجات من المخزن', 'storemovementController.php', '31.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('245', '4', '31', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 245, 0, 0
                    , 190.00, 31, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('245', '4', '31', '0', '158', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '246', '10', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '246';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 246, 0, 0
                    , 190.00, -10, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*190.00," WHERE transferproductid = 159;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('246', '1', '10', '1', '159', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('246', '4', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 246, 0, 0
                    , 190.00, 10, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('246', '4', '10', '0', '159', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '247', '21', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '247';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 247, 0, 0
                    , 175.00, -21, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*175.00," WHERE transferproductid = 160;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('247', '1', '21', '1', '160', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('247', '4', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 247, 0, 0
                    , 175.00, 21, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('247', '4', '21', '0', '160', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '248', '1', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '248';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 248, 0, 0
                    , 180.00, -1, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*180.00," WHERE transferproductid = 161;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('248', '1', '1', '1', '161', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('248', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 248, 0, 0
                    , 180.00, 1, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('248', '4', '1', '0', '161', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '250', '3', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '250';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 250, 0, 0
                    , 180.00, -3, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*180.00," WHERE transferproductid = 162;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('250', '1', '3', '1', '162', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('250', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 250, 0, 0
                    , 180.00, 3, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('250', '4', '3', '0', '162', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '256', '4', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '256';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 256, 0, 0
                    , 175.00, -4, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*175.00," WHERE transferproductid = 163;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('256', '1', '4', '1', '163', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('256', '4', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 256, 0, 0
                    , 175.00, 4, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('256', '4', '4', '0', '163', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '257', '2', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '257';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 257, 0, 0
                    , 160.00, -2, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*160.00," WHERE transferproductid = 164;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('257', '1', '2', '1', '164', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('257', '4', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 257, 0, 0
                    , 160.00, 2, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('257', '4', '2', '0', '164', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '258', '12', '2021-11-08', '1', '0','4',null,null,'2021-11-08 13:30:07',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '258';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 258, 0, 0
                    , 190.00, -12, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*190.00," WHERE transferproductid = 165;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('258', '1', '12', '1', '165', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('258', '4', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 258, 0, 0
                    , 190.00, 12, 0, 0, 1, '2021-11-08 13:30:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:30:07' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('258', '4', '12', '0', '165', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:00:07";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:30:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:30:07', '1', 'sucess', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:00:09";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:30:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:30:09', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:00:25";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:30:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:30:25', '1', '', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:04:05";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:34:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:34:05', '1', 'add', '197.56.63.195', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(5,1,4,259,32,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 13:34:05',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '259';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 259, 0, 0
                    , 190.00, -32, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2021-11-08*190.00," WHERE transferproductid = 166;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('259', '1', '32', '1', '166', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('259', '4', '32', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 259, 0, 0
                    , 190.00, 32, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('259', '4', '32', '0', '166', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '260', '3', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:05',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '260';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 260, 0, 0
                    , 170.00, -3, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*170.00," WHERE transferproductid = 167;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('260', '1', '3', '1', '167', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('260', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 260, 0, 0
                    , 170.00, 3, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('260', '4', '3', '0', '167', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '261', '1', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:05',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '261';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 261, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 168;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('261', '1', '1', '1', '168', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('261', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 261, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('261', '4', '1', '0', '168', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '262', '3', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:05',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '262';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 262, 0, 0
                    , 170.00, -3, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*170.00," WHERE transferproductid = 169;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('262', '1', '3', '1', '169', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('262', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 262, 0, 0
                    , 170.00, 3, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('262', '4', '3', '0', '169', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '263', '12', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:05',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '263';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 263, 0, 0
                    , 160.00, -12, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*160.00," WHERE transferproductid = 170;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('263', '1', '12', '1', '170', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('263', '4', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 263, 0, 0
                    , 160.00, 12, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('263', '4', '12', '0', '170', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '264', '2', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:05',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '264';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 264, 0, 0
                    , 170.00, -2, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*170.00," WHERE transferproductid = 171;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('264', '1', '2', '1', '171', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('264', '4', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 264, 0, 0
                    , 170.00, 2, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('264', '4', '2', '0', '171', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '265', '10', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:05',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '265';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 265, 0, 0
                    , 170.00, -10, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*170.00," WHERE transferproductid = 172;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('265', '1', '10', '1', '172', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('265', '4', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 265, 0, 0
                    , 170.00, 10, 0, 0, 1, '2021-11-08 13:34:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:05' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('265', '4', '10', '0', '172', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '266', '6', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '266';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 266, 0, 0
                    , 170.00, -6, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*170.00," WHERE transferproductid = 173;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('266', '1', '6', '1', '173', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('266', '4', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 266, 0, 0
                    , 170.00, 6, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('266', '4', '6', '0', '173', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '267', '1', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '267';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 267, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 174;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('267', '1', '1', '1', '174', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('267', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 267, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('267', '4', '1', '0', '174', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '268', '8', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '268';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 268, 0, 0
                    , 205.00, -8, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*205.00," WHERE transferproductid = 175;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('268', '1', '8', '1', '175', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('268', '4', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 268, 0, 0
                    , 205.00, 8, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('268', '4', '8', '0', '175', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '269', '30', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '269';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 269, 0, 0
                    , 180.00, -30, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2021-11-08*180.00," WHERE transferproductid = 176;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('269', '1', '30', '1', '176', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('269', '4', '30', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 269, 0, 0
                    , 180.00, 30, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('269', '4', '30', '0', '176', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '270', '9', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '270';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 270, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 177;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('270', '1', '9', '1', '177', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('270', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 270, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('270', '4', '9', '0', '177', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '271', '9', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '271';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 271, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 178;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('271', '1', '9', '1', '178', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('271', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 271, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('271', '4', '9', '0', '178', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '272', '9', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '272';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 272, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 179;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('272', '1', '9', '1', '179', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('272', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 272, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('272', '4', '9', '0', '179', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '273', '9', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '273';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 273, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 180;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('273', '1', '9', '1', '180', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('273', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 273, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('273', '4', '9', '0', '180', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '274', '9', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '274';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 274, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 181;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('274', '1', '9', '1', '181', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('274', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 274, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('274', '4', '9', '0', '181', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '275', '17', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '275';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 275, 0, 0
                    , 205.00, -17, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*205.00," WHERE transferproductid = 182;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('275', '1', '17', '1', '182', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('275', '4', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 275, 0, 0
                    , 205.00, 17, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('275', '4', '17', '0', '182', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '276', '19', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '276';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 276, 0, 0
                    , 205.00, -19, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*205.00," WHERE transferproductid = 183;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('276', '1', '19', '1', '183', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('276', '4', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 276, 0, 0
                    , 205.00, 19, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('276', '4', '19', '0', '183', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '277', '35', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '277';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 277, 0, 0
                    , 205.00, -35, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2021-11-08*205.00," WHERE transferproductid = 184;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('277', '1', '35', '1', '184', 'تحويل منتجات من المخزن', 'storemovementController.php', '35.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('277', '4', '35', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 277, 0, 0
                    , 205.00, 35, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('277', '4', '35', '0', '184', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '278', '22', '2021-11-08', '1', '0','5',null,null,'2021-11-08 13:34:06',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '278';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 278, 0, 0
                    , 205.00, -22, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*205.00," WHERE transferproductid = 185;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('278', '1', '22', '1', '185', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('278', '4', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 278, 0, 0
                    , 205.00, 22, 0, 0, 1, '2021-11-08 13:34:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:34:06' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('278', '4', '22', '0', '185', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:04:06";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:34:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:34:06', '1', 'sucess', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:04:08";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:34:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:34:08', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:04:10";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:34:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:34:10', '1', '', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:08:57";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:38:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:38:57', '1', 'add', '197.56.63.195', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(6,1,4,279,33,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 13:38:57',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '279';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 279, 0, 0
                    , 205.00, -33, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2021-11-08*205.00," WHERE transferproductid = 186;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('279', '1', '33', '1', '186', 'تحويل منتجات من المخزن', 'storemovementController.php', '33.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('279', '4', '33', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 279, 0, 0
                    , 205.00, 33, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('279', '4', '33', '0', '186', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '280', '1', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '280';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 280, 0, 0
                    , 150.00, -1, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*150.00," WHERE transferproductid = 187;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('280', '1', '1', '1', '187', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '9', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('280', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 280, 0, 0
                    , 150.00, 1, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('280', '4', '1', '0', '187', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '281', '13', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '281';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 281, 0, 0
                    , 150.00, -13, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*150.00," WHERE transferproductid = 188;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('281', '1', '13', '1', '188', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('281', '4', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 281, 0, 0
                    , 150.00, 13, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('281', '4', '13', '0', '188', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '282', '38', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '282';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 282, 0, 0
                    , 150.00, -38, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "38*2021-11-08*150.00," WHERE transferproductid = 189;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('282', '1', '38', '1', '189', 'تحويل منتجات من المخزن', 'storemovementController.php', '38.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('282', '4', '38', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 282, 0, 0
                    , 150.00, 38, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('282', '4', '38', '0', '189', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '38', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '283', '14', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '283';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 283, 0, 0
                    , 150.00, -14, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*150.00," WHERE transferproductid = 190;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('283', '1', '14', '1', '190', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('283', '4', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 283, 0, 0
                    , 150.00, 14, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('283', '4', '14', '0', '190', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '284', '42', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '284';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 284, 0, 0
                    , 150.00, -42, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2021-11-08*150.00," WHERE transferproductid = 191;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('284', '1', '42', '1', '191', 'تحويل منتجات من المخزن', 'storemovementController.php', '42.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('284', '4', '42', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 284, 0, 0
                    , 150.00, 42, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('284', '4', '42', '0', '191', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '285', '23', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '285';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 285, 0, 0
                    , 190.00, -23, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*190.00," WHERE transferproductid = 192;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('285', '1', '23', '1', '192', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('285', '4', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 285, 0, 0
                    , 190.00, 23, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('285', '4', '23', '0', '192', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '286', '27', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '286';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 286, 0, 0
                    , 150.00, -27, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*150.00," WHERE transferproductid = 193;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('286', '1', '27', '1', '193', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('286', '4', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 286, 0, 0
                    , 150.00, 27, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('286', '4', '27', '0', '193', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '287', '3', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '287';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 287, 0, 0
                    , 150.00, -3, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*150.00," WHERE transferproductid = 194;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('287', '1', '3', '1', '194', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('287', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 287, 0, 0
                    , 150.00, 3, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('287', '4', '3', '0', '194', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '288', '51', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '288';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 288, 0, 0
                    , 160.00, -51, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "51*2021-11-08*160.00," WHERE transferproductid = 195;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('288', '1', '51', '1', '195', 'تحويل منتجات من المخزن', 'storemovementController.php', '51.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('288', '4', '51', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 288, 0, 0
                    , 160.00, 51, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('288', '4', '51', '0', '195', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '51', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '289', '11', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '289';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 289, 0, 0
                    , 160.00, -11, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*160.00," WHERE transferproductid = 196;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('289', '1', '11', '1', '196', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('289', '4', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 289, 0, 0
                    , 160.00, 11, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('289', '4', '11', '0', '196', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '290', '4', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '290';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 290, 0, 0
                    , 165.00, -4, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*165.00," WHERE transferproductid = 197;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('290', '1', '4', '1', '197', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('290', '4', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 290, 0, 0
                    , 165.00, 4, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('290', '4', '4', '0', '197', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '291', '17', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '291';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 291, 0, 0
                    , 160.00, -17, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*160.00," WHERE transferproductid = 198;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('291', '1', '17', '1', '198', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('291', '4', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 291, 0, 0
                    , 160.00, 17, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('291', '4', '17', '0', '198', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '292', '12', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '292';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 292, 0, 0
                    , 160.00, -12, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*160.00," WHERE transferproductid = 199;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('292', '1', '12', '1', '199', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('292', '4', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 292, 0, 0
                    , 160.00, 12, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('292', '4', '12', '0', '199', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '293', '20', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '293';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 293, 0, 0
                    , 160.00, -20, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*160.00," WHERE transferproductid = 200;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('293', '1', '20', '1', '200', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('293', '4', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 293, 0, 0
                    , 160.00, 20, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('293', '4', '20', '0', '200', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '294', '31', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '294';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 294, 0, 0
                    , 180.00, -31, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2021-11-08*180.00," WHERE transferproductid = 201;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('294', '1', '31', '1', '201', 'تحويل منتجات من المخزن', 'storemovementController.php', '31.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('294', '4', '31', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 294, 0, 0
                    , 180.00, 31, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('294', '4', '31', '0', '201', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '295', '8', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '295';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 295, 0, 0
                    , 165.00, -8, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*165.00," WHERE transferproductid = 202;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('295', '1', '8', '1', '202', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('295', '4', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 295, 0, 0
                    , 165.00, 8, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('295', '4', '8', '0', '202', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '296', '37', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '296';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 296, 0, 0
                    , 180.00, -37, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "37*2021-11-08*180.00," WHERE transferproductid = 203;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('296', '1', '37', '1', '203', 'تحويل منتجات من المخزن', 'storemovementController.php', '37.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('296', '4', '37', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 296, 0, 0
                    , 180.00, 37, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('296', '4', '37', '0', '203', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '37', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '297', '20', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '297';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 297, 0, 0
                    , 160.00, -20, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*160.00," WHERE transferproductid = 204;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('297', '1', '20', '1', '204', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('297', '4', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 297, 0, 0
                    , 160.00, 20, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('297', '4', '20', '0', '204', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '298', '19', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '298';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 298, 0, 0
                    , 180.00, -19, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*180.00," WHERE transferproductid = 205;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('298', '1', '19', '1', '205', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('298', '4', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 298, 0, 0
                    , 180.00, 19, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('298', '4', '19', '0', '205', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '299', '66', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '299';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 299, 0, 0
                    , 155.00, -66, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-66, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "66*2021-11-08*155.00," WHERE transferproductid = 206;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('299', '1', '66', '1', '206', 'تحويل منتجات من المخزن', 'storemovementController.php', '66.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('299', '4', '66', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 299, 0, 0
                    , 155.00, 66, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+66, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('299', '4', '66', '0', '206', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '66', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '300', '34', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '300';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 300, 0, 0
                    , 205.00, -34, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2021-11-08*205.00," WHERE transferproductid = 207;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('300', '1', '34', '1', '207', 'تحويل منتجات من المخزن', 'storemovementController.php', '34.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('300', '4', '34', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 300, 0, 0
                    , 205.00, 34, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('300', '4', '34', '0', '207', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '301', '24', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '301';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 301, 0, 0
                    , 190.00, -24, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*190.00," WHERE transferproductid = 208;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('301', '1', '24', '1', '208', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('301', '4', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 301, 0, 0
                    , 190.00, 24, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('301', '4', '24', '0', '208', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '302', '13', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '302';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 302, 0, 0
                    , 200.00, -13, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*200.00," WHERE transferproductid = 209;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('302', '1', '13', '1', '209', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('302', '4', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 302, 0, 0
                    , 200.00, 13, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('302', '4', '13', '0', '209', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '312', '13', '2021-11-08', '1', '0','6',null,null,'2021-11-08 13:38:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '312';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 312, 0, 0
                    , 150.00, -13, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*150.00," WHERE transferproductid = 210;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('312', '1', '13', '1', '210', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('312', '4', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 312, 0, 0
                    , 150.00, 13, 0, 0, 1, '2021-11-08 13:38:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:38:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('312', '4', '13', '0', '210', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:08:58";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:38:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:38:58', '1', 'sucess', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:09:00";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:39:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:39:00', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:09:02";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:39:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:39:02', '1', '', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:17:58";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:47:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:47:58', '1', 'add', '197.56.63.195', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(7,1,4,315,18,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 13:47:59',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '315';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 315, 0, 0
                    , 170.00, -18, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*170.00," WHERE transferproductid = 211;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('315', '1', '18', '1', '211', 'تحويل منتجات من المخزن', 'storemovementController.php', '83.00', '65', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('315', '4', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 315, 0, 0
                    , 170.00, 18, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('315', '4', '18', '0', '211', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '324', '83', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '324';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 324, 0, 0
                    , 130.00, -83, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 130.00,
                        buyQuantity =buyQuantity+-83, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "83*2021-11-08*130.00," WHERE transferproductid = 212;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('324', '1', '83', '1', '212', 'تحويل منتجات من المخزن', 'storemovementController.php', '83.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('324', '4', '83', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 324, 0, 0
                    , 130.00, 83, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+83, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('324', '4', '83', '0', '212', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '83', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '325', '84', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '325';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 325, 0, 0
                    , 100.00, -84, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-84, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "84*2021-11-08*100.00," WHERE transferproductid = 213;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('325', '1', '84', '1', '213', 'تحويل منتجات من المخزن', 'storemovementController.php', '84.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('325', '4', '84', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 325, 0, 0
                    , 100.00, 84, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+84, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('325', '4', '84', '0', '213', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '84', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '382', '31', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '87', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '382';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 382, 0, 0
                    , 190.00, -31, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2021-11-08*190.00," WHERE transferproductid = 214;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '1', '31', '1', '214', 'تحويل منتجات من المخزن', 'storemovementController.php', '118.00', '87', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('382', '4', '31', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 382, 0, 0
                    , 190.00, 31, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '4', '31', '0', '214', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '383', '5', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '79', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '383';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 383, 0, 0
                    , 185.00, -5, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*185.00," WHERE transferproductid = 215;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '1', '5', '1', '215', 'تحويل منتجات من المخزن', 'storemovementController.php', '84.00', '79', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('383', '4', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 383, 0, 0
                    , 185.00, 5, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '4', '5', '0', '215', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '384', '11', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '46', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '384';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 384, 0, 0
                    , 185.00, -11, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*185.00," WHERE transferproductid = 216;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '1', '11', '1', '216', 'تحويل منتجات من المخزن', 'storemovementController.php', '57.00', '46', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('384', '4', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 384, 0, 0
                    , 185.00, 11, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '4', '11', '0', '216', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '385', '16', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '82', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '385';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 385, 0, 0
                    , 185.00, -16, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*185.00," WHERE transferproductid = 217;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '1', '16', '1', '217', 'تحويل منتجات من المخزن', 'storemovementController.php', '98.00', '82', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('385', '4', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 385, 0, 0
                    , 185.00, 16, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '4', '16', '0', '217', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '386', '20', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '41', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '386';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 386, 0, 0
                    , 185.00, -20, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*185.00," WHERE transferproductid = 218;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('386', '1', '20', '1', '218', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '41', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('386', '4', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 386, 0, 0
                    , 185.00, 20, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('386', '4', '20', '0', '218', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '387', '10', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '387';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 387, 0, 0
                    , 175.00, -10, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*175.00," WHERE transferproductid = 219;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('387', '1', '10', '1', '219', 'تحويل منتجات من المخزن', 'storemovementController.php', '43.00', '33', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('387', '4', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 387, 0, 0
                    , 175.00, 10, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('387', '4', '10', '0', '219', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '391', '16', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '391';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 391, 0, 0
                    , 190.00, -16, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*190.00," WHERE transferproductid = 220;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('391', '1', '16', '1', '220', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('391', '4', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 391, 0, 0
                    , 190.00, 16, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('391', '4', '16', '0', '220', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '392', '21', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '392';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 392, 0, 0
                    , 190.00, -21, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*190.00," WHERE transferproductid = 221;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('392', '1', '21', '1', '221', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('392', '4', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 392, 0, 0
                    , 190.00, 21, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('392', '4', '21', '0', '221', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '400', '82', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '400';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 400, 0, 0
                    , 180.00, -82, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-82, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "82*2021-11-08*180.00," WHERE transferproductid = 222;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('400', '1', '82', '1', '222', 'تحويل منتجات من المخزن', 'storemovementController.php', '82.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('400', '4', '82', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 400, 0, 0
                    , 180.00, 82, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+82, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('400', '4', '82', '0', '222', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '82', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '209', '74', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '17', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '209';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 209, 0, 0
                    , 195.00, -74, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-74, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "74*2021-11-08*195.00," WHERE transferproductid = 223;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('209', '1', '74', '1', '223', 'تحويل منتجات من المخزن', 'storemovementController.php', '91.00', '17', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('209', '4', '74', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 209, 0, 0
                    , 195.00, 74, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+74, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('209', '4', '74', '0', '223', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '74', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '401', '6', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '401';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 401, 0, 0
                    , 230.00, -6, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 230.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*230.00," WHERE transferproductid = 224;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('401', '1', '6', '1', '224', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('401', '4', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 401, 0, 0
                    , 230.00, 6, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('401', '4', '6', '0', '224', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '402', '19', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '402';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 402, 0, 0
                    , 240.00, -19, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*240.00," WHERE transferproductid = 225;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('402', '1', '19', '1', '225', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('402', '4', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 402, 0, 0
                    , 240.00, 19, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('402', '4', '19', '0', '225', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '403', '3', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '403';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 403, 0, 0
                    , 240.00, -3, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*240.00," WHERE transferproductid = 226;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('403', '1', '3', '1', '226', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('403', '4', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 403, 0, 0
                    , 240.00, 3, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('403', '4', '3', '0', '226', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '404', '1', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '404';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 404, 0, 0
                    , 215.00, -1, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*215.00," WHERE transferproductid = 227;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('404', '1', '1', '1', '227', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('404', '4', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 404, 0, 0
                    , 215.00, 1, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('404', '4', '1', '0', '227', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '442', '150', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '695', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '442';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 442, 0, 0
                    , 125.00, -150, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-150, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "150*2021-11-08*125.00," WHERE transferproductid = 228;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('442', '1', '150', '1', '228', 'تحويل منتجات من المخزن', 'storemovementController.php', '845.00', '695', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('442', '4', '150', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 442, 0, 0
                    , 125.00, 150, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+150, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('442', '4', '150', '0', '228', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '150', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '448', '15', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '448';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 448, 0, 0
                    , 160.00, -15, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*160.00," WHERE transferproductid = 229;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('448', '1', '15', '1', '229', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('448', '4', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 448, 0, 0
                    , 160.00, 15, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('448', '4', '15', '0', '229', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '458', '20', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '458';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 458, 0, 0
                    , 175.00, -20, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*175.00," WHERE transferproductid = 230;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('458', '1', '20', '1', '230', 'تحويل منتجات من المخزن', 'storemovementController.php', '116.00', '96', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('458', '4', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 458, 0, 0
                    , 175.00, 20, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('458', '4', '20', '0', '230', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '450', '9', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '153', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '450';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 450, 0, 0
                    , 280.00, -9, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*280.00," WHERE transferproductid = 231;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('450', '1', '9', '1', '231', 'تحويل منتجات من المخزن', 'storemovementController.php', '162.00', '153', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('450', '4', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 450, 0, 0
                    , 280.00, 9, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('450', '4', '9', '0', '231', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '461', '7', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '461';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 461, 0, 0
                    , 90.00, -7, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 90.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*90.00," WHERE transferproductid = 232;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('461', '1', '7', '1', '232', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('461', '4', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 461, 0, 0
                    , 90.00, 7, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('461', '4', '7', '0', '232', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '474', '31', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '71', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '474';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 474, 0, 0
                    , 170.00, -31, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2021-11-08*170.00," WHERE transferproductid = 233;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('474', '1', '31', '1', '233', 'تحويل منتجات من المخزن', 'storemovementController.php', '102.00', '71', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('474', '4', '31', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 474, 0, 0
                    , 170.00, 31, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('474', '4', '31', '0', '233', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '511', '28', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '178', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '511';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 511, 0, 0
                    , 215.00, -28, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2021-11-08*215.00," WHERE transferproductid = 234;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('511', '1', '28', '1', '234', 'تحويل منتجات من المخزن', 'storemovementController.php', '206.00', '178', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('511', '4', '28', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 511, 0, 0
                    , 215.00, 28, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('511', '4', '28', '0', '234', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '513', '16', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '114', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '513';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 513, 0, 0
                    , 210.00, -16, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*210.00," WHERE transferproductid = 235;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '1', '16', '1', '235', 'تحويل منتجات من المخزن', 'storemovementController.php', '130.00', '114', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('513', '4', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 513, 0, 0
                    , 210.00, 16, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '4', '16', '0', '235', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '514', '19', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '141', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '514';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 514, 0, 0
                    , 210.00, -19, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*210.00," WHERE transferproductid = 236;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '1', '19', '1', '236', 'تحويل منتجات من المخزن', 'storemovementController.php', '160.00', '141', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('514', '4', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 514, 0, 0
                    , 210.00, 19, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '4', '19', '0', '236', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '515', '11', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '148', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '515';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 515, 0, 0
                    , 220.00, -11, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*220.00," WHERE transferproductid = 237;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '1', '11', '1', '237', 'تحويل منتجات من المخزن', 'storemovementController.php', '159.00', '148', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('515', '4', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 515, 0, 0
                    , 220.00, 11, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '4', '11', '0', '237', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '516', '6', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '85', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '516';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 516, 0, 0
                    , 220.00, -6, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*220.00," WHERE transferproductid = 238;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '1', '6', '1', '238', 'تحويل منتجات من المخزن', 'storemovementController.php', '91.00', '85', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('516', '4', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 516, 0, 0
                    , 220.00, 6, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '4', '6', '0', '238', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '517', '16', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '103', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '517';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 517, 0, 0
                    , 210.00, -16, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*210.00," WHERE transferproductid = 239;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '1', '16', '1', '239', 'تحويل منتجات من المخزن', 'storemovementController.php', '119.00', '103', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('517', '4', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 517, 0, 0
                    , 210.00, 16, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '4', '16', '0', '239', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '518', '6', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '159', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '518';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 518, 0, 0
                    , 210.00, -6, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*210.00," WHERE transferproductid = 240;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '1', '6', '1', '240', 'تحويل منتجات من المخزن', 'storemovementController.php', '165.00', '159', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('518', '4', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 518, 0, 0
                    , 210.00, 6, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '4', '6', '0', '240', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '4', '218', '34', '2021-11-08', '1', '0','7',null,null,'2021-11-08 13:47:59',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '560', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '218';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 218, 0, 0
                    , 100.00, -34, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2021-11-08*100.00," WHERE transferproductid = 241;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('218', '1', '34', '1', '241', 'تحويل منتجات من المخزن', 'storemovementController.php', '594.00', '560', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('218', '4', '34', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 4, 218, 0, 0
                    , 100.00, 34, 0, 0, 1, '2021-11-08 13:47:59')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 13:47:59' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('218', '4', '34', '0', '241', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:17:59";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:47:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:47:59', '1', 'sucess', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:18:01";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:48:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:48:01', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:18:16";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 13:48:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 13:48:16', '1', '', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:31:24";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 14:01:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 14:01:24', '1', 'add', '197.56.63.195', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(8,1,5,352,3,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 14:01:24',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '352';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 352, 0, 0
                    , 120.00, -3, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*120.00," WHERE transferproductid = 242;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('352', '1', '3', '1', '242', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '11', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('352', '5', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 352, 0, 0
                    , 120.00, 3, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('352', '5', '3', '0', '242', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '363', '10', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '363';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 363, 0, 0
                    , 120.00, -10, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*120.00," WHERE transferproductid = 243;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('363', '1', '10', '1', '243', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('363', '5', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 363, 0, 0
                    , 120.00, 10, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('363', '5', '10', '0', '243', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '356', '5', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '356';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 356, 0, 0
                    , 120.00, -5, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*120.00," WHERE transferproductid = 244;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('356', '1', '5', '1', '244', 'تحويل منتجات من المخزن', 'storemovementController.php', '28.00', '23', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('356', '5', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 356, 0, 0
                    , 120.00, 5, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('356', '5', '5', '0', '244', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '359', '23', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '359';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 359, 0, 0
                    , 120.00, -23, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*120.00," WHERE transferproductid = 245;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('359', '1', '23', '1', '245', 'تحويل منتجات من المخزن', 'storemovementController.php', '39.00', '16', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('359', '5', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 359, 0, 0
                    , 120.00, 23, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('359', '5', '23', '0', '245', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '332', '5', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '332';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 332, 0, 0
                    , 120.00, -5, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*120.00," WHERE transferproductid = 246;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('332', '1', '5', '1', '246', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('332', '5', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 332, 0, 0
                    , 120.00, 5, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('332', '5', '5', '0', '246', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '333', '2', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '333';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 333, 0, 0
                    , 120.00, -2, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*120.00," WHERE transferproductid = 247;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('333', '1', '2', '1', '247', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '3', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('333', '5', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 333, 0, 0
                    , 120.00, 2, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('333', '5', '2', '0', '247', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '329', '4', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '329';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 329, 0, 0
                    , 155.00, -4, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*155.00," WHERE transferproductid = 248;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('329', '1', '4', '1', '248', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('329', '5', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 329, 0, 0
                    , 155.00, 4, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('329', '5', '4', '0', '248', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '364', '18', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '364';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 364, 0, 0
                    , 120.00, -18, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*120.00," WHERE transferproductid = 249;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('364', '1', '18', '1', '249', 'تحويل منتجات من المخزن', 'storemovementController.php', '39.00', '21', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('364', '5', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 364, 0, 0
                    , 120.00, 18, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('364', '5', '18', '0', '249', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '351', '8', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '351';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 351, 0, 0
                    , 120.00, -8, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*120.00," WHERE transferproductid = 250;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('351', '1', '8', '1', '250', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('351', '5', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 351, 0, 0
                    , 120.00, 8, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('351', '5', '8', '0', '250', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '362', '14', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '362';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 362, 0, 0
                    , 120.00, -14, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*120.00," WHERE transferproductid = 251;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('362', '1', '14', '1', '251', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('362', '5', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 362, 0, 0
                    , 120.00, 14, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('362', '5', '14', '0', '251', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '342', '7', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '342';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 342, 0, 0
                    , 120.00, -7, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*120.00," WHERE transferproductid = 252;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('342', '1', '7', '1', '252', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('342', '5', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 342, 0, 0
                    , 120.00, 7, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('342', '5', '7', '0', '252', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '341', '16', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '341';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 341, 0, 0
                    , 120.00, -16, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*120.00," WHERE transferproductid = 253;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('341', '1', '16', '1', '253', 'تحويل منتجات من المخزن', 'storemovementController.php', '35.00', '19', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('341', '5', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 341, 0, 0
                    , 120.00, 16, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('341', '5', '16', '0', '253', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '348', '29', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '17', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '348';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 348, 0, 0
                    , 120.00, -29, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2021-11-08*120.00," WHERE transferproductid = 254;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('348', '1', '29', '1', '254', 'تحويل منتجات من المخزن', 'storemovementController.php', '46.00', '17', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('348', '5', '29', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 348, 0, 0
                    , 120.00, 29, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('348', '5', '29', '0', '254', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '365', '16', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '365';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 365, 0, 0
                    , 120.00, -16, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*120.00," WHERE transferproductid = 255;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('365', '1', '16', '1', '255', 'تحويل منتجات من المخزن', 'storemovementController.php', '39.00', '23', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('365', '5', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 365, 0, 0
                    , 120.00, 16, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('365', '5', '16', '0', '255', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '361', '5', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '361';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 361, 0, 0
                    , 120.00, -5, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*120.00," WHERE transferproductid = 256;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('361', '1', '5', '1', '256', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('361', '5', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 361, 0, 0
                    , 120.00, 5, 0, 0, 1, '2021-11-08 14:01:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:24' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('361', '5', '5', '0', '256', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '336', '23', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:24',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '336';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 336, 0, 0
                    , 150.00, -23, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*150.00," WHERE transferproductid = 257;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('336', '1', '23', '1', '257', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('336', '5', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 336, 0, 0
                    , 150.00, 23, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('336', '5', '23', '0', '257', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '373', '21', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '373';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 373, 0, 0
                    , 150.00, -21, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*150.00," WHERE transferproductid = 258;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('373', '1', '21', '1', '258', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('373', '5', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 373, 0, 0
                    , 150.00, 21, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('373', '5', '21', '0', '258', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '471', '19', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '471';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 471, 0, 0
                    , 165.00, -19, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*165.00," WHERE transferproductid = 259;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('471', '1', '19', '1', '259', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '8', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('471', '5', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 471, 0, 0
                    , 165.00, 19, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('471', '5', '19', '0', '259', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '159', '3', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '159';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 159, 0, 0
                    , 165.00, -3, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*165.00," WHERE transferproductid = 260;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('159', '1', '3', '1', '260', 'تحويل منتجات من المخزن', 'storemovementController.php', '25.00', '22', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('159', '5', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 159, 0, 0
                    , 165.00, 3, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('159', '5', '3', '0', '260', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '314', '4', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '314';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 314, 0, 0
                    , 150.00, -4, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*150.00," WHERE transferproductid = 261;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('314', '1', '4', '1', '261', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('314', '5', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 314, 0, 0
                    , 150.00, 4, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('314', '5', '4', '0', '261', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '45', '7', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '45';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 45, 0, 0
                    , 160.00, -7, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*160.00," WHERE transferproductid = 262;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('45', '1', '7', '1', '262', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('45', '5', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 45, 0, 0
                    , 160.00, 7, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('45', '5', '7', '0', '262', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '497', '13', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '497';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 497, 0, 0
                    , 165.00, -13, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*165.00," WHERE transferproductid = 263;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('497', '1', '13', '1', '263', 'تحويل منتجات من المخزن', 'storemovementController.php', '29.00', '16', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('497', '5', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 497, 0, 0
                    , 165.00, 13, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('497', '5', '13', '0', '263', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '467', '27', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '467';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 467, 0, 0
                    , 165.00, -27, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*165.00," WHERE transferproductid = 264;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('467', '1', '27', '1', '264', 'تحويل منتجات من المخزن', 'storemovementController.php', '31.00', '4', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('467', '5', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 467, 0, 0
                    , 165.00, 27, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('467', '5', '27', '0', '264', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '532', '16', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '532';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 532, 0, 0
                    , 195.00, -16, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*195.00," WHERE transferproductid = 265;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('532', '1', '16', '1', '265', 'تحويل منتجات من المخزن', 'storemovementController.php', '39.00', '23', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('532', '5', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 532, 0, 0
                    , 195.00, 16, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('532', '5', '16', '0', '265', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '487', '21', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '487';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 487, 0, 0
                    , 140.00, -21, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*140.00," WHERE transferproductid = 266;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('487', '1', '21', '1', '266', 'تحويل منتجات من المخزن', 'storemovementController.php', '44.00', '23', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('487', '5', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 487, 0, 0
                    , 140.00, 21, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('487', '5', '21', '0', '266', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '483', '43', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '483';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 483, 0, 0
                    , 150.00, -43, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "43*2021-11-08*150.00," WHERE transferproductid = 267;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('483', '1', '43', '1', '267', 'تحويل منتجات من المخزن', 'storemovementController.php', '54.00', '11', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('483', '5', '43', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 483, 0, 0
                    , 150.00, 43, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('483', '5', '43', '0', '267', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '43', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '349', '9', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '349';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 349, 0, 0
                    , 120.00, -9, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*120.00," WHERE transferproductid = 268;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('349', '1', '9', '1', '268', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('349', '5', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 349, 0, 0
                    , 120.00, 9, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('349', '5', '9', '0', '268', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '345', '12', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '345';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 345, 0, 0
                    , 120.00, -12, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*120.00," WHERE transferproductid = 269;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('345', '1', '12', '1', '269', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('345', '5', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 345, 0, 0
                    , 120.00, 12, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('345', '5', '12', '0', '269', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '378', '13', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '378';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 378, 0, 0
                    , 160.00, -13, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*160.00," WHERE transferproductid = 270;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('378', '1', '13', '1', '270', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('378', '5', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 378, 0, 0
                    , 160.00, 13, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('378', '5', '13', '0', '270', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '495', '14', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '495';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 495, 0, 0
                    , 165.00, -14, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*165.00," WHERE transferproductid = 271;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('495', '1', '14', '1', '271', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('495', '5', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 495, 0, 0
                    , 165.00, 14, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('495', '5', '14', '0', '271', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '367', '19', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '367';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 367, 0, 0
                    , 120.00, -19, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*120.00," WHERE transferproductid = 272;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('367', '1', '19', '1', '272', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('367', '5', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 367, 0, 0
                    , 120.00, 19, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('367', '5', '19', '0', '272', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '346', '11', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '346';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 346, 0, 0
                    , 120.00, -11, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*120.00," WHERE transferproductid = 273;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('346', '1', '11', '1', '273', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '1', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('346', '5', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 346, 0, 0
                    , 120.00, 11, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('346', '5', '11', '0', '273', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '368', '11', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '368';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 368, 0, 0
                    , 160.00, -11, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*160.00," WHERE transferproductid = 274;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('368', '1', '11', '1', '274', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('368', '5', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 368, 0, 0
                    , 160.00, 11, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('368', '5', '11', '0', '274', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '370', '8', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '370';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 370, 0, 0
                    , 160.00, -8, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*160.00," WHERE transferproductid = 275;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('370', '1', '8', '1', '275', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '10', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('370', '5', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 370, 0, 0
                    , 160.00, 8, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('370', '5', '8', '0', '275', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '504', '17', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '504';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 504, 0, 0
                    , 155.00, -17, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*155.00," WHERE transferproductid = 276;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('504', '1', '17', '1', '276', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '15', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('504', '5', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 504, 0, 0
                    , 155.00, 17, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('504', '5', '17', '0', '276', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '481', '3', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '481';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 481, 0, 0
                    , 165.00, -3, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*165.00," WHERE transferproductid = 277;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('481', '1', '3', '1', '277', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '6', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('481', '5', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 481, 0, 0
                    , 165.00, 3, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('481', '5', '3', '0', '277', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '528', '5', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '528';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 528, 0, 0
                    , 195.00, -5, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*195.00," WHERE transferproductid = 278;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('528', '1', '5', '1', '278', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '11', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('528', '5', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 528, 0, 0
                    , 195.00, 5, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('528', '5', '5', '0', '278', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '366', '20', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '366';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 366, 0, 0
                    , 120.00, -20, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*120.00," WHERE transferproductid = 279;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('366', '1', '20', '1', '279', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('366', '5', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 366, 0, 0
                    , 120.00, 20, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('366', '5', '20', '0', '279', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '347', '8', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '347';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 347, 0, 0
                    , 120.00, -8, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*120.00," WHERE transferproductid = 280;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('347', '1', '8', '1', '280', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('347', '5', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 347, 0, 0
                    , 120.00, 8, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('347', '5', '8', '0', '280', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '539', '21', '2021-11-08', '1', '0','8',null,null,'2021-11-08 14:01:25',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '539';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 539, 0, 0
                    , 195.00, -21, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*195.00," WHERE transferproductid = 281;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('539', '1', '21', '1', '281', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('539', '5', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 539, 0, 0
                    , 195.00, 21, 0, 0, 1, '2021-11-08 14:01:25')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:01:25' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('539', '5', '21', '0', '281', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:31:25";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 14:01:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 14:01:25', '1', 'sucess', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:31:27";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 14:01:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 14:01:28', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:31:41";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 14:01:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 14:01:41', '1', '', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:49:43";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 14:19:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 14:19:43', '1', 'add', '197.56.63.195', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(9,1,5,489,7,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 14:19:43',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '489';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 489, 0, 0
                    , 170.00, -7, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*170.00," WHERE transferproductid = 282;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('489', '1', '7', '1', '282', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '6', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('489', '5', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 489, 0, 0
                    , 170.00, 7, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('489', '5', '7', '0', '282', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '526', '12', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '526';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 526, 0, 0
                    , 195.00, -12, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*195.00," WHERE transferproductid = 283;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('526', '1', '12', '1', '283', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '4', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('526', '5', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 526, 0, 0
                    , 195.00, 12, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('526', '5', '12', '0', '283', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '529', '28', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '529';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 529, 0, 0
                    , 195.00, -28, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2021-11-08*195.00," WHERE transferproductid = 284;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('529', '1', '28', '1', '284', 'تحويل منتجات من المخزن', 'storemovementController.php', '37.00', '9', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('529', '5', '28', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 529, 0, 0
                    , 195.00, 28, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('529', '5', '28', '0', '284', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '480', '11', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '480';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 480, 0, 0
                    , 180.00, -11, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*180.00," WHERE transferproductid = 285;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('480', '1', '11', '1', '285', 'تحويل منتجات من المخزن', 'storemovementController.php', '29.00', '18', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('480', '5', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 480, 0, 0
                    , 180.00, 11, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('480', '5', '11', '0', '285', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '533', '32', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '533';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 533, 0, 0
                    , 195.00, -32, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2021-11-08*195.00," WHERE transferproductid = 286;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('533', '1', '32', '1', '286', 'تحويل منتجات من المخزن', 'storemovementController.php', '45.00', '13', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('533', '5', '32', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 533, 0, 0
                    , 195.00, 32, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('533', '5', '32', '0', '286', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '510', '7', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '510';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 510, 0, 0
                    , 165.00, -7, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*165.00," WHERE transferproductid = 287;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('510', '1', '7', '1', '287', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('510', '5', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 510, 0, 0
                    , 165.00, 7, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('510', '5', '7', '0', '287', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '491', '8', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '491';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 491, 0, 0
                    , 165.00, -8, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*165.00," WHERE transferproductid = 288;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('491', '1', '8', '1', '288', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '14', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('491', '5', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 491, 0, 0
                    , 165.00, 8, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('491', '5', '8', '0', '288', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '488', '34', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '41', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '488';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 488, 0, 0
                    , 165.00, -34, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2021-11-08*165.00," WHERE transferproductid = 289;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('488', '1', '34', '1', '289', 'تحويل منتجات من المخزن', 'storemovementController.php', '75.00', '41', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('488', '5', '34', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 488, 0, 0
                    , 165.00, 34, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('488', '5', '34', '0', '289', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '170', '26', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '170';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 170, 0, 0
                    , 160.00, -26, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*160.00," WHERE transferproductid = 290;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('170', '1', '26', '1', '290', 'تحويل منتجات من المخزن', 'storemovementController.php', '44.00', '18', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('170', '5', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 170, 0, 0
                    , 160.00, 26, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('170', '5', '26', '0', '290', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '163', '12', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '163';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 163, 0, 0
                    , 165.00, -12, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*165.00," WHERE transferproductid = 291;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('163', '1', '12', '1', '291', 'تحويل منتجات من المخزن', 'storemovementController.php', '26.00', '14', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('163', '5', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 163, 0, 0
                    , 165.00, 12, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('163', '5', '12', '0', '291', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '438', '14', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '438';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 438, 0, 0
                    , 170.00, -14, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*170.00," WHERE transferproductid = 292;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('438', '1', '14', '1', '292', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('438', '5', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 438, 0, 0
                    , 170.00, 14, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('438', '5', '14', '0', '292', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '485', '5', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '485';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 485, 0, 0
                    , 150.00, -5, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*150.00," WHERE transferproductid = 293;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('485', '1', '5', '1', '293', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '14', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('485', '5', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 485, 0, 0
                    , 150.00, 5, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('485', '5', '5', '0', '293', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '498', '15', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '498';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 498, 0, 0
                    , 170.00, -15, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*170.00," WHERE transferproductid = 294;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('498', '1', '15', '1', '294', 'تحويل منتجات من المخزن', 'storemovementController.php', '28.00', '13', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('498', '5', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 498, 0, 0
                    , 170.00, 15, 0, 0, 1, '2021-11-08 14:19:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('498', '5', '15', '0', '294', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '200', '3', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '200';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 200, 0, 0
                    , 180.00, -3, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*180.00," WHERE transferproductid = 295;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('200', '1', '3', '1', '295', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '1', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('200', '5', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 200, 0, 0
                    , 180.00, 3, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('200', '5', '3', '0', '295', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '490', '8', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '490';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 490, 0, 0
                    , 165.00, -8, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*165.00," WHERE transferproductid = 296;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('490', '1', '8', '1', '296', 'تحويل منتجات من المخزن', 'storemovementController.php', '28.00', '20', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('490', '5', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 490, 0, 0
                    , 165.00, 8, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('490', '5', '8', '0', '296', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '303', '9', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '303';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 303, 0, 0
                    , 165.00, -9, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*165.00," WHERE transferproductid = 297;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('303', '1', '9', '1', '297', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '1', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('303', '5', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 303, 0, 0
                    , 165.00, 9, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('303', '5', '9', '0', '297', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '439', '19', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '439';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 439, 0, 0
                    , 170.00, -19, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*170.00," WHERE transferproductid = 298;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('439', '1', '19', '1', '298', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('439', '5', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 439, 0, 0
                    , 170.00, 19, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('439', '5', '19', '0', '298', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '527', '26', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '527';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 527, 0, 0
                    , 195.00, -26, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*195.00," WHERE transferproductid = 299;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('527', '1', '26', '1', '299', 'تحويل منتجات من المخزن', 'storemovementController.php', '38.00', '12', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('527', '5', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 527, 0, 0
                    , 195.00, 26, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('527', '5', '26', '0', '299', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '493', '17', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '31', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '493';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 493, 0, 0
                    , 165.00, -17, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*165.00," WHERE transferproductid = 300;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('493', '1', '17', '1', '300', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '31', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('493', '5', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 493, 0, 0
                    , 165.00, 17, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('493', '5', '17', '0', '300', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '506', '23', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '506';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 506, 0, 0
                    , 195.00, -23, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*195.00," WHERE transferproductid = 301;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('506', '1', '23', '1', '301', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('506', '5', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 506, 0, 0
                    , 195.00, 23, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('506', '5', '23', '0', '301', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '535', '13', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '535';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 535, 0, 0
                    , 195.00, -13, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*195.00," WHERE transferproductid = 302;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('535', '1', '13', '1', '302', 'تحويل منتجات من المخزن', 'storemovementController.php', '40.00', '27', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('535', '5', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 535, 0, 0
                    , 195.00, 13, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('535', '5', '13', '0', '302', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '536', '18', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '536';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 536, 0, 0
                    , 195.00, -18, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*195.00," WHERE transferproductid = 303;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('536', '1', '18', '1', '303', 'تحويل منتجات من المخزن', 'storemovementController.php', '42.00', '24', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('536', '5', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 536, 0, 0
                    , 195.00, 18, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('536', '5', '18', '0', '303', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '537', '9', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '537';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 537, 0, 0
                    , 195.00, -9, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*195.00," WHERE transferproductid = 304;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('537', '1', '9', '1', '304', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '21', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('537', '5', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 537, 0, 0
                    , 195.00, 9, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('537', '5', '9', '0', '304', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '201', '18', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '201';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 201, 0, 0
                    , 195.00, -18, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*195.00," WHERE transferproductid = 305;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('201', '1', '18', '1', '305', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '5', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('201', '5', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 201, 0, 0
                    , 195.00, 18, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('201', '5', '18', '0', '305', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '473', '45', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '473';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 473, 0, 0
                    , 195.00, -45, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2021-11-08*195.00," WHERE transferproductid = 306;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('473', '1', '45', '1', '306', 'تحويل منتجات من المخزن', 'storemovementController.php', '45.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('473', '5', '45', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 473, 0, 0
                    , 195.00, 45, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('473', '5', '45', '0', '306', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '486', '11', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '486';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 486, 0, 0
                    , 165.00, -11, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*165.00," WHERE transferproductid = 307;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('486', '1', '11', '1', '307', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '8', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('486', '5', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 486, 0, 0
                    , 165.00, 11, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('486', '5', '11', '0', '307', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '499', '19', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '499';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 499, 0, 0
                    , 180.00, -19, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*180.00," WHERE transferproductid = 308;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('499', '1', '19', '1', '308', 'تحويل منتجات من المخزن', 'storemovementController.php', '43.00', '24', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('499', '5', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 499, 0, 0
                    , 180.00, 19, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('499', '5', '19', '0', '308', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '433', '22', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '433';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 433, 0, 0
                    , 150.00, -22, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*150.00," WHERE transferproductid = 309;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('433', '1', '22', '1', '309', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('433', '5', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 433, 0, 0
                    , 150.00, 22, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('433', '5', '22', '0', '309', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '440', '14', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '440';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 440, 0, 0
                    , 170.00, -14, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*170.00," WHERE transferproductid = 310;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('440', '1', '14', '1', '310', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('440', '5', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 440, 0, 0
                    , 170.00, 14, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('440', '5', '14', '0', '310', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '430', '9', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '430';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 430, 0, 0
                    , 170.00, -9, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*170.00," WHERE transferproductid = 311;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('430', '1', '9', '1', '311', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('430', '5', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 430, 0, 0
                    , 170.00, 9, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('430', '5', '9', '0', '311', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '437', '25', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '437';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 437, 0, 0
                    , 145.00, -25, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2021-11-08*145.00," WHERE transferproductid = 312;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('437', '1', '25', '1', '312', 'تحويل منتجات من المخزن', 'storemovementController.php', '25.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('437', '5', '25', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 437, 0, 0
                    , 145.00, 25, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('437', '5', '25', '0', '312', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '393', '74', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '393';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 393, 0, 0
                    , 195.00, -74, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-74, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "74*2021-11-08*195.00," WHERE transferproductid = 313;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('393', '1', '74', '1', '313', 'تحويل منتجات من المخزن', 'storemovementController.php', '94.00', '20', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('393', '5', '74', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 393, 0, 0
                    , 195.00, 74, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+74, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('393', '5', '74', '0', '313', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '74', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '397', '104', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '161', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '397';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 397, 0, 0
                    , 195.00, -104, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-104, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "104*2021-11-08*195.00," WHERE transferproductid = 314;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('397', '1', '104', '1', '314', 'تحويل منتجات من المخزن', 'storemovementController.php', '265.00', '161', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('397', '5', '104', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 397, 0, 0
                    , 195.00, 104, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+104, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('397', '5', '104', '0', '314', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '104', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '196', '9', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-3', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '196';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 196, 0, 0
                    , 170.00, -9, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*170.00," WHERE transferproductid = 315;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('196', '1', '9', '1', '315', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '-3', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('196', '5', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 196, 0, 0
                    , 170.00, 9, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('196', '5', '9', '0', '315', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '432', '11', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '432';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 432, 0, 0
                    , 125.00, -11, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*125.00," WHERE transferproductid = 316;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('432', '1', '11', '1', '316', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('432', '5', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 432, 0, 0
                    , 125.00, 11, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('432', '5', '11', '0', '316', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '395', '27', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '195', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '395';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 395, 0, 0
                    , 175.00, -27, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*175.00," WHERE transferproductid = 317;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('395', '1', '27', '1', '317', 'تحويل منتجات من المخزن', 'storemovementController.php', '222.00', '195', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('395', '5', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 395, 0, 0
                    , 175.00, 27, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('395', '5', '27', '0', '317', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '90', '21', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '114', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '90';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 90, 0, 0
                    , 165.00, -21, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*165.00," WHERE transferproductid = 318;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '1', '21', '1', '318', 'تحويل منتجات من المخزن', 'storemovementController.php', '135.00', '114', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('90', '5', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 90, 0, 0
                    , 165.00, 21, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '5', '21', '0', '318', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '442', '50', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '645', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '442';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 442, 0, 0
                    , 125.00, -50, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2021-11-08*125.00," WHERE transferproductid = 319;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('442', '1', '50', '1', '319', 'تحويل منتجات من المخزن', 'storemovementController.php', '695.00', '645', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('442', '5', '50', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 442, 0, 0
                    , 125.00, 50, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('442', '5', '50', '0', '319', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '494', '29', '2021-11-08', '1', '0','9',null,null,'2021-11-08 14:19:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '31', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '494';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 494, 0, 0
                    , 180.00, -29, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2021-11-08*180.00," WHERE transferproductid = 320;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('494', '1', '29', '1', '320', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '31', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('494', '5', '29', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 494, 0, 0
                    , 180.00, 29, 0, 0, 1, '2021-11-08 14:19:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:19:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('494', '5', '29', '0', '320', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:49:44";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 14:19:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 14:19:45', '1', 'sucess', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:49:47";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 14:19:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 14:19:47', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 10:55:46";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 14:25:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 14:25:47', '1', '', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 11:18:57";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 14:48:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 14:48:57', '1', 'add', '197.56.63.195', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(10,1,5,482,12,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 14:48:57',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '482';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 482, 0, 0
                    , 180.00, -12, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*180.00," WHERE transferproductid = 321;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('482', '1', '12', '1', '321', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('482', '5', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 482, 0, 0
                    , 180.00, 12, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('482', '5', '12', '0', '321', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '480', '12', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '480';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 480, 0, 0
                    , 180.00, -12, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*180.00," WHERE transferproductid = 322;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('480', '1', '12', '1', '322', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '6', '1', '2021-11-08','0','0');
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '837';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 480, 0, 0
                    , 180.00, 12, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('480', '5', '12', '0', '322', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '11.00', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '509', '6', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '509';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 509, 0, 0
                    , 160.00, -6, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*160.00," WHERE transferproductid = 323;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('509', '1', '6', '1', '323', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('509', '5', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 509, 0, 0
                    , 160.00, 6, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('509', '5', '6', '0', '323', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '409', '2', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '409';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 409, 0, 0
                    , 150.00, -2, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*150.00," WHERE transferproductid = 324;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('409', '1', '2', '1', '324', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('409', '5', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 409, 0, 0
                    , 150.00, 2, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('409', '5', '2', '0', '324', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '492', '9', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '492';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 492, 0, 0
                    , 180.00, -9, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*180.00," WHERE transferproductid = 325;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('492', '1', '9', '1', '325', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '52', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('492', '5', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 492, 0, 0
                    , 180.00, 9, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('492', '5', '9', '0', '325', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '444', '88', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '232', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '444';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 444, 0, 0
                    , 135.00, -88, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-88, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "88*2021-11-08*135.00," WHERE transferproductid = 326;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('444', '1', '88', '1', '326', 'تحويل منتجات من المخزن', 'storemovementController.php', '320.00', '232', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('444', '5', '88', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 444, 0, 0
                    , 135.00, 88, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+88, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('444', '5', '88', '0', '326', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '88', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '445', '21', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '445';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 445, 0, 0
                    , 135.00, -21, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*135.00," WHERE transferproductid = 327;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('445', '1', '21', '1', '327', 'تحويل منتجات من المخزن', 'storemovementController.php', '40.00', '19', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('445', '5', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 445, 0, 0
                    , 135.00, 21, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('445', '5', '21', '0', '327', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '443', '19', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '44', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '443';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 443, 0, 0
                    , 135.00, -19, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*135.00," WHERE transferproductid = 328;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('443', '1', '19', '1', '328', 'تحويل منتجات من المخزن', 'storemovementController.php', '63.00', '44', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('443', '5', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 443, 0, 0
                    , 135.00, 19, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('443', '5', '19', '0', '328', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '411', '14', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '411';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 411, 0, 0
                    , 135.00, -14, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*135.00," WHERE transferproductid = 329;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('411', '1', '14', '1', '329', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('411', '5', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 411, 0, 0
                    , 135.00, 14, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('411', '5', '14', '0', '329', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '446', '10', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '446';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 446, 0, 0
                    , 140.00, -10, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*140.00," WHERE transferproductid = 330;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('446', '1', '10', '1', '330', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('446', '5', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 446, 0, 0
                    , 140.00, 10, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('446', '5', '10', '0', '330', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '447', '4', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '447';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 447, 0, 0
                    , 165.00, -4, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*165.00," WHERE transferproductid = 331;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('447', '1', '4', '1', '331', 'تحويل منتجات من المخزن', 'storemovementController.php', '64.00', '60', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('447', '5', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 447, 0, 0
                    , 165.00, 4, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('447', '5', '4', '0', '331', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '441', '2', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '441';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 441, 0, 0
                    , 180.00, -2, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*180.00," WHERE transferproductid = 332;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('441', '1', '2', '1', '332', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('441', '5', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 441, 0, 0
                    , 180.00, 2, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('441', '5', '2', '0', '332', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '311', '15', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '214', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '311';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 311, 0, 0
                    , 75.00, -15, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 75.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*75.00," WHERE transferproductid = 333;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('311', '1', '15', '1', '333', 'تحويل منتجات من المخزن', 'storemovementController.php', '229.00', '214', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('311', '5', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 311, 0, 0
                    , 75.00, 15, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('311', '5', '15', '0', '333', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '434', '3', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '434';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 434, 0, 0
                    , 160.00, -3, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*160.00," WHERE transferproductid = 334;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('434', '1', '3', '1', '334', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('434', '5', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 434, 0, 0
                    , 160.00, 3, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('434', '5', '3', '0', '334', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '310', '3', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '310';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 310, 0, 0
                    , 150.00, -3, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*150.00," WHERE transferproductid = 335;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('310', '1', '3', '1', '335', 'تحويل منتجات من المخزن', 'storemovementController.php', '25.00', '22', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('310', '5', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 310, 0, 0
                    , 150.00, 3, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('310', '5', '3', '0', '335', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '308', '2', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '308';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 308, 0, 0
                    , 145.00, -2, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*145.00," WHERE transferproductid = 336;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('308', '1', '2', '1', '336', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('308', '5', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 308, 0, 0
                    , 145.00, 2, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('308', '5', '2', '0', '336', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '309', '1', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '309';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 309, 0, 0
                    , 145.00, -1, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*145.00," WHERE transferproductid = 337;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('309', '1', '1', '1', '337', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '18', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('309', '5', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 309, 0, 0
                    , 145.00, 1, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('309', '5', '1', '0', '337', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '307', '2', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '307';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 307, 0, 0
                    , 150.00, -2, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*150.00," WHERE transferproductid = 338;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('307', '1', '2', '1', '338', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '12', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('307', '5', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 307, 0, 0
                    , 150.00, 2, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('307', '5', '2', '0', '338', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '306', '12', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '49', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '306';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 306, 0, 0
                    , 145.00, -12, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*145.00," WHERE transferproductid = 339;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('306', '1', '12', '1', '339', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '49', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('306', '5', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 306, 0, 0
                    , 145.00, 12, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('306', '5', '12', '0', '339', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '304', '6', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '304';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 304, 0, 0
                    , 145.00, -6, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*145.00," WHERE transferproductid = 340;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('304', '1', '6', '1', '340', 'تحويل منتجات من المخزن', 'storemovementController.php', '42.00', '36', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('304', '5', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 304, 0, 0
                    , 145.00, 6, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('304', '5', '6', '0', '340', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '218', '103', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '457', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '218';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 218, 0, 0
                    , 100.00, -103, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-103, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "103*2021-11-08*100.00," WHERE transferproductid = 341;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('218', '1', '103', '1', '341', 'تحويل منتجات من المخزن', 'storemovementController.php', '560.00', '457', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('218', '5', '103', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 218, 0, 0
                    , 100.00, 103, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+103, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('218', '5', '103', '0', '341', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '103', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '479', '5', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '479';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 479, 0, 0
                    , 165.00, -5, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*165.00," WHERE transferproductid = 342;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('479', '1', '5', '1', '342', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '3', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('479', '5', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 479, 0, 0
                    , 165.00, 5, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('479', '5', '5', '0', '342', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '507', '7', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '507';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 507, 0, 0
                    , 165.00, -7, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*165.00," WHERE transferproductid = 343;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('507', '1', '7', '1', '343', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('507', '5', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 507, 0, 0
                    , 165.00, 7, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('507', '5', '7', '0', '343', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '484', '2', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '484';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 484, 0, 0
                    , 165.00, -2, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*165.00," WHERE transferproductid = 344;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('484', '1', '2', '1', '344', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('484', '5', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 484, 0, 0
                    , 165.00, 2, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('484', '5', '2', '0', '344', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '44', '1', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '44';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 44, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 345;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('44', '1', '1', '1', '345', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '18', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('44', '5', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 44, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 14:48:57')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:57' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('44', '5', '1', '0', '345', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '305', '5', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:57',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '29', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '305';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 305, 0, 0
                    , 145.00, -5, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*145.00," WHERE transferproductid = 346;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('305', '1', '5', '1', '346', 'تحويل منتجات من المخزن', 'storemovementController.php', '34.00', '29', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('305', '5', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 305, 0, 0
                    , 145.00, 5, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('305', '5', '5', '0', '346', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '496', '43', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '496';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 496, 0, 0
                    , 150.00, -43, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "43*2021-11-08*150.00," WHERE transferproductid = 347;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('496', '1', '43', '1', '347', 'تحويل منتجات من المخزن', 'storemovementController.php', '56.00', '13', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('496', '5', '43', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 496, 0, 0
                    , 150.00, 43, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('496', '5', '43', '0', '347', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '43', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '383', '29', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '383';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 383, 0, 0
                    , 185.00, -29, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2021-11-08*185.00," WHERE transferproductid = 348;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '1', '29', '1', '348', 'تحويل منتجات من المخزن', 'storemovementController.php', '79.00', '50', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('383', '5', '29', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 383, 0, 0
                    , 185.00, 29, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '5', '29', '0', '348', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '384', '30', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '384';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 384, 0, 0
                    , 185.00, -30, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2021-11-08*185.00," WHERE transferproductid = 349;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '1', '30', '1', '349', 'تحويل منتجات من المخزن', 'storemovementController.php', '46.00', '16', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('384', '5', '30', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 384, 0, 0
                    , 185.00, 30, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '5', '30', '0', '349', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '385', '32', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '385';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 385, 0, 0
                    , 185.00, -32, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2021-11-08*185.00," WHERE transferproductid = 350;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '1', '32', '1', '350', 'تحويل منتجات من المخزن', 'storemovementController.php', '82.00', '50', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('385', '5', '32', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 385, 0, 0
                    , 185.00, 32, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '5', '32', '0', '350', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '386', '23', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '386';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 386, 0, 0
                    , 185.00, -23, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*185.00," WHERE transferproductid = 351;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('386', '1', '23', '1', '351', 'تحويل منتجات من المخزن', 'storemovementController.php', '41.00', '18', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('386', '5', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 386, 0, 0
                    , 185.00, 23, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('386', '5', '23', '0', '351', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '387', '25', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '387';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 387, 0, 0
                    , 175.00, -25, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2021-11-08*175.00," WHERE transferproductid = 352;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('387', '1', '25', '1', '352', 'تحويل منتجات من المخزن', 'storemovementController.php', '33.00', '8', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('387', '5', '25', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 387, 0, 0
                    , 175.00, 25, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('387', '5', '25', '0', '352', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '513', '42', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '513';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 513, 0, 0
                    , 210.00, -42, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2021-11-08*210.00," WHERE transferproductid = 353;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '1', '42', '1', '353', 'تحويل منتجات من المخزن', 'storemovementController.php', '114.00', '72', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('513', '5', '42', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 513, 0, 0
                    , 210.00, 42, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '5', '42', '0', '353', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '514', '60', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '81', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '514';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 514, 0, 0
                    , 210.00, -60, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2021-11-08*210.00," WHERE transferproductid = 354;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '1', '60', '1', '354', 'تحويل منتجات من المخزن', 'storemovementController.php', '141.00', '81', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('514', '5', '60', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 514, 0, 0
                    , 210.00, 60, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '5', '60', '0', '354', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '515', '75', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '73', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '515';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 515, 0, 0
                    , 220.00, -75, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-75, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "75*2021-11-08*220.00," WHERE transferproductid = 355;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '1', '75', '1', '355', 'تحويل منتجات من المخزن', 'storemovementController.php', '148.00', '73', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('515', '5', '75', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 515, 0, 0
                    , 220.00, 75, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+75, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '5', '75', '0', '355', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '75', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '516', '19', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '66', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '516';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 516, 0, 0
                    , 220.00, -19, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*220.00," WHERE transferproductid = 356;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '1', '19', '1', '356', 'تحويل منتجات من المخزن', 'storemovementController.php', '85.00', '66', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('516', '5', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 516, 0, 0
                    , 220.00, 19, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '5', '19', '0', '356', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '517', '43', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '517';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 517, 0, 0
                    , 210.00, -43, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "43*2021-11-08*210.00," WHERE transferproductid = 357;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '1', '43', '1', '357', 'تحويل منتجات من المخزن', 'storemovementController.php', '103.00', '60', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('517', '5', '43', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 517, 0, 0
                    , 210.00, 43, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '5', '43', '0', '357', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '43', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '518', '56', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '103', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '518';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 518, 0, 0
                    , 210.00, -56, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-56, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "56*2021-11-08*210.00," WHERE transferproductid = 358;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '1', '56', '1', '358', 'تحويل منتجات من المخزن', 'storemovementController.php', '159.00', '103', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('518', '5', '56', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 518, 0, 0
                    , 210.00, 56, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+56, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '5', '56', '0', '358', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '56', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '450', '97', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '56', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '450';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 450, 0, 0
                    , 280.00, -97, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-97, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "97*2021-11-08*280.00," WHERE transferproductid = 359;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('450', '1', '97', '1', '359', 'تحويل منتجات من المخزن', 'storemovementController.php', '153.00', '56', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('450', '5', '97', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 450, 0, 0
                    , 280.00, 97, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+97, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('450', '5', '97', '0', '359', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '97', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '251', '10', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '251';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 251, 0, 0
                    , 210.00, -10, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*210.00," WHERE transferproductid = 360;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('251', '1', '10', '1', '360', 'تحويل منتجات من المخزن', 'storemovementController.php', '29.00', '19', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('251', '5', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 251, 0, 0
                    , 210.00, 10, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('251', '5', '10', '0', '360', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '541', '10', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '541';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 541, 0, 0
                    , 235.00, -10, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*235.00," WHERE transferproductid = 361;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('541', '1', '10', '1', '361', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('541', '5', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 541, 0, 0
                    , 235.00, 10, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('541', '5', '10', '0', '361', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '253', '9', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '253';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 253, 0, 0
                    , 225.00, -9, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 225.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*225.00," WHERE transferproductid = 362;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('253', '1', '9', '1', '362', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '11', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('253', '5', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 253, 0, 0
                    , 225.00, 9, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('253', '5', '9', '0', '362', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '125', '84', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '61', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '125';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 125, 0, 0
                    , 185.00, -84, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-84, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "84*2021-11-08*185.00," WHERE transferproductid = 363;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('125', '1', '84', '1', '363', 'تحويل منتجات من المخزن', 'storemovementController.php', '145.00', '61', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('125', '5', '84', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 125, 0, 0
                    , 185.00, 84, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+84, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('125', '5', '84', '0', '363', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '84', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '124', '53', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '97', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '124';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 124, 0, 0
                    , 185.00, -53, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-53, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "53*2021-11-08*185.00," WHERE transferproductid = 364;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('124', '1', '53', '1', '364', 'تحويل منتجات من المخزن', 'storemovementController.php', '150.00', '97', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('124', '5', '53', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 124, 0, 0
                    , 185.00, 53, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+53, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('124', '5', '53', '0', '364', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '53', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '126', '16', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '101', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '126';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 126, 0, 0
                    , 195.00, -16, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*195.00," WHERE transferproductid = 365;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('126', '1', '16', '1', '365', 'تحويل منتجات من المخزن', 'storemovementController.php', '117.00', '101', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('126', '5', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 126, 0, 0
                    , 195.00, 16, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('126', '5', '16', '0', '365', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '128', '34', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '128';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 128, 0, 0
                    , 235.00, -34, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2021-11-08*235.00," WHERE transferproductid = 366;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('128', '1', '34', '1', '366', 'تحويل منتجات من المخزن', 'storemovementController.php', '74.00', '40', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('128', '5', '34', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 128, 0, 0
                    , 235.00, 34, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('128', '5', '34', '0', '366', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '390', '18', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '390';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 390, 0, 0
                    , 175.00, -18, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*175.00," WHERE transferproductid = 367;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('390', '1', '18', '1', '367', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('390', '5', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 390, 0, 0
                    , 175.00, 18, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('390', '5', '18', '0', '367', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '254', '13', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '254';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 254, 0, 0
                    , 270.00, -13, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*270.00," WHERE transferproductid = 368;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('254', '1', '13', '1', '368', 'تحويل منتجات من المخزن', 'storemovementController.php', '35.00', '22', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('254', '5', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 254, 0, 0
                    , 270.00, 13, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('254', '5', '13', '0', '368', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '5', '255', '13', '2021-11-08', '1', '0','10',null,null,'2021-11-08 14:48:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '255';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 255, 0, 0
                    , 255.00, -13, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyprice = 255.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*255.00," WHERE transferproductid = 369;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('255', '1', '13', '1', '369', 'تحويل منتجات من المخزن', 'storemovementController.php', '37.00', '24', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('255', '5', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 5, 255, 0, 0
                    , 255.00, 13, 0, 0, 1, '2021-11-08 14:48:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 14:48:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('255', '5', '13', '0', '369', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 11:18:58";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 14:48:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 14:48:58', '1', 'sucess', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 11:19:00";
UPDATE user SET loginip = "197.56.63.195", lastactivetime = "2021-11-08 14:49:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 14:49:00', '1', 'show', '197.56.63.195', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:05:14";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 16:35:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 16:35:15', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:21:37";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 16:51:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 16:51:37', '1', 'add', '102.45.243.181', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(11,1,6,340,9,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 16:51:37',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '340';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 340, 0, 0
                    , 120.00, -9, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*120.00," WHERE transferproductid = 370;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('340', '1', '9', '1', '370', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('340', '6', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 340, 0, 0
                    , 120.00, 9, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('340', '6', '9', '0', '370', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '371', '8', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '371';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 371, 0, 0
                    , 160.00, -8, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*160.00," WHERE transferproductid = 371;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('371', '1', '8', '1', '371', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('371', '6', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 371, 0, 0
                    , 160.00, 8, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('371', '6', '8', '0', '371', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '352', '11', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '352';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 352, 0, 0
                    , 120.00, -11, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*120.00," WHERE transferproductid = 372;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('352', '1', '11', '1', '372', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('352', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 352, 0, 0
                    , 120.00, 11, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('352', '6', '11', '0', '372', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '365', '23', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '365';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 365, 0, 0
                    , 120.00, -23, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*120.00," WHERE transferproductid = 373;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('365', '1', '23', '1', '373', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('365', '6', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 365, 0, 0
                    , 120.00, 23, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('365', '6', '23', '0', '373', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '343', '30', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '343';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 343, 0, 0
                    , 120.00, -30, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2021-11-08*120.00," WHERE transferproductid = 374;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('343', '1', '30', '1', '374', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('343', '6', '30', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 343, 0, 0
                    , 120.00, 30, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('343', '6', '30', '0', '374', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '348', '17', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '348';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 348, 0, 0
                    , 120.00, -17, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*120.00," WHERE transferproductid = 375;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('348', '1', '17', '1', '375', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('348', '6', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 348, 0, 0
                    , 120.00, 17, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('348', '6', '17', '0', '375', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '358', '14', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '358';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 358, 0, 0
                    , 160.00, -14, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*160.00," WHERE transferproductid = 376;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('358', '1', '14', '1', '376', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('358', '6', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 358, 0, 0
                    , 160.00, 14, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('358', '6', '14', '0', '376', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '355', '25', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '355';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 355, 0, 0
                    , 120.00, -25, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2021-11-08*120.00," WHERE transferproductid = 377;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('355', '1', '25', '1', '377', 'تحويل منتجات من المخزن', 'storemovementController.php', '25.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('355', '6', '25', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 355, 0, 0
                    , 120.00, 25, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('355', '6', '25', '0', '377', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '354', '24', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '354';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 354, 0, 0
                    , 120.00, -24, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*120.00," WHERE transferproductid = 378;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('354', '1', '24', '1', '378', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('354', '6', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 354, 0, 0
                    , 120.00, 24, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('354', '6', '24', '0', '378', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '356', '23', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '356';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 356, 0, 0
                    , 120.00, -23, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*120.00," WHERE transferproductid = 379;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('356', '1', '23', '1', '379', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('356', '6', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 356, 0, 0
                    , 120.00, 23, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('356', '6', '23', '0', '379', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '350', '22', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '350';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 350, 0, 0
                    , 160.00, -22, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*160.00," WHERE transferproductid = 380;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('350', '1', '22', '1', '380', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('350', '6', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 350, 0, 0
                    , 160.00, 22, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('350', '6', '22', '0', '380', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '364', '21', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '364';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 364, 0, 0
                    , 120.00, -21, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*120.00," WHERE transferproductid = 381;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('364', '1', '21', '1', '381', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('364', '6', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 364, 0, 0
                    , 120.00, 21, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('364', '6', '21', '0', '381', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '357', '11', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '357';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 357, 0, 0
                    , 160.00, -11, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*160.00," WHERE transferproductid = 382;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('357', '1', '11', '1', '382', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('357', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 357, 0, 0
                    , 160.00, 11, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('357', '6', '11', '0', '382', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '376', '15', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '376';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 376, 0, 0
                    , 160.00, -15, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*160.00," WHERE transferproductid = 383;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('376', '1', '15', '1', '383', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('376', '6', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 376, 0, 0
                    , 160.00, 15, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('376', '6', '15', '0', '383', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '425', '17', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '425';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 425, 0, 0
                    , 155.00, -17, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*155.00," WHERE transferproductid = 384;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('425', '1', '17', '1', '384', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('425', '6', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 425, 0, 0
                    , 155.00, 17, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('425', '6', '17', '0', '384', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '360', '7', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '360';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 360, 0, 0
                    , 120.00, -7, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*120.00," WHERE transferproductid = 385;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('360', '1', '7', '1', '385', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('360', '6', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 360, 0, 0
                    , 120.00, 7, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('360', '6', '7', '0', '385', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '369', '46', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '369';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 369, 0, 0
                    , 160.00, -46, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "46*2021-11-08*160.00," WHERE transferproductid = 386;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('369', '1', '46', '1', '386', 'تحويل منتجات من المخزن', 'storemovementController.php', '46.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('369', '6', '46', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 369, 0, 0
                    , 160.00, 46, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('369', '6', '46', '0', '386', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '46', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '339', '5', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '339';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 339, 0, 0
                    , 160.00, -5, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*160.00," WHERE transferproductid = 387;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('339', '1', '5', '1', '387', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('339', '6', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 339, 0, 0
                    , 160.00, 5, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('339', '6', '5', '0', '387', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '333', '3', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '333';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 333, 0, 0
                    , 120.00, -3, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*120.00," WHERE transferproductid = 388;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('333', '1', '3', '1', '388', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('333', '6', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 333, 0, 0
                    , 120.00, 3, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('333', '6', '3', '0', '388', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '328', '11', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '328';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 328, 0, 0
                    , 120.00, -11, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*120.00," WHERE transferproductid = 389;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('328', '1', '11', '1', '389', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('328', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 328, 0, 0
                    , 120.00, 11, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('328', '6', '11', '0', '389', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '327', '4', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '327';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 327, 0, 0
                    , 120.00, -4, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*120.00," WHERE transferproductid = 390;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('327', '1', '4', '1', '390', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('327', '6', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 327, 0, 0
                    , 120.00, 4, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('327', '6', '4', '0', '390', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '377', '13', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '377';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 377, 0, 0
                    , 120.00, -13, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*120.00," WHERE transferproductid = 391;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('377', '1', '13', '1', '391', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('377', '6', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 377, 0, 0
                    , 120.00, 13, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('377', '6', '13', '0', '391', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '331', '13', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '331';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 331, 0, 0
                    , 120.00, -13, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*120.00," WHERE transferproductid = 392;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('331', '1', '13', '1', '392', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('331', '6', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 331, 0, 0
                    , 120.00, 13, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('331', '6', '13', '0', '392', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '395', '16', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '179', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '395';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 395, 0, 0
                    , 175.00, -16, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*175.00," WHERE transferproductid = 393;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('395', '1', '16', '1', '393', 'تحويل منتجات من المخزن', 'storemovementController.php', '195.00', '179', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('395', '6', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 395, 0, 0
                    , 175.00, 16, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('395', '6', '16', '0', '393', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '528', '11', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '528';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 528, 0, 0
                    , 195.00, -11, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*195.00," WHERE transferproductid = 394;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('528', '1', '11', '1', '394', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('528', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 528, 0, 0
                    , 195.00, 11, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('528', '6', '11', '0', '394', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '322', '11', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '322';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 322, 0, 0
                    , 150.00, -11, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*150.00," WHERE transferproductid = 395;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('322', '1', '11', '1', '395', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('322', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 322, 0, 0
                    , 150.00, 11, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('322', '6', '11', '0', '395', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '90', '20', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '94', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '90';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 90, 0, 0
                    , 165.00, -20, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*165.00," WHERE transferproductid = 396;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '1', '20', '1', '396', 'تحويل منتجات من المخزن', 'storemovementController.php', '114.00', '94', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('90', '6', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 90, 0, 0
                    , 165.00, 20, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '6', '20', '0', '396', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '488', '41', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '488';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 488, 0, 0
                    , 165.00, -41, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "41*2021-11-08*165.00," WHERE transferproductid = 397;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('488', '1', '41', '1', '397', 'تحويل منتجات من المخزن', 'storemovementController.php', '41.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('488', '6', '41', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 488, 0, 0
                    , 165.00, 41, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('488', '6', '41', '0', '397', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '41', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '163', '6', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '163';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 163, 0, 0
                    , 165.00, -6, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*165.00," WHERE transferproductid = 398;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('163', '1', '6', '1', '398', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '8', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('163', '6', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 163, 0, 0
                    , 165.00, 6, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('163', '6', '6', '0', '398', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '353', '15', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '353';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 353, 0, 0
                    , 160.00, -15, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*160.00," WHERE transferproductid = 399;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('353', '1', '15', '1', '399', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('353', '6', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 353, 0, 0
                    , 160.00, 15, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('353', '6', '15', '0', '399', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '359', '16', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '359';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 359, 0, 0
                    , 120.00, -16, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*120.00," WHERE transferproductid = 400;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('359', '1', '16', '1', '400', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('359', '6', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 359, 0, 0
                    , 120.00, 16, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('359', '6', '16', '0', '400', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '394', '58', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '116', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '394';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 394, 0, 0
                    , 195.00, -58, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-58, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "58*2021-11-08*195.00," WHERE transferproductid = 401;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('394', '1', '58', '1', '401', 'تحويل منتجات من المخزن', 'storemovementController.php', '174.00', '116', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('394', '6', '58', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 394, 0, 0
                    , 195.00, 58, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+58, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('394', '6', '58', '0', '401', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '58', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '397', '187', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-26', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '397';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 397, 0, 0
                    , 195.00, -187, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-187, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "187*2021-11-08*195.00," WHERE transferproductid = 402;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('397', '1', '187', '1', '402', 'تحويل منتجات من المخزن', 'storemovementController.php', '161.00', '-26', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('397', '6', '187', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 397, 0, 0
                    , 195.00, 187, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+187, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('397', '6', '187', '0', '402', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '187', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '458', '15', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '81', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '458';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 458, 0, 0
                    , 175.00, -15, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*175.00," WHERE transferproductid = 403;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('458', '1', '15', '1', '403', 'تحويل منتجات من المخزن', 'storemovementController.php', '96.00', '81', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('458', '6', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 458, 0, 0
                    , 175.00, 15, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('458', '6', '15', '0', '403', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '490', '20', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '490';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 490, 0, 0
                    , 165.00, -20, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*165.00," WHERE transferproductid = 404;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('490', '1', '20', '1', '404', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('490', '6', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 490, 0, 0
                    , 165.00, 20, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('490', '6', '20', '0', '404', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '481', '6', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '481';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 481, 0, 0
                    , 165.00, -6, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*165.00," WHERE transferproductid = 405;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('481', '1', '6', '1', '405', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('481', '6', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 481, 0, 0
                    , 165.00, 6, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('481', '6', '6', '0', '405', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '502', '9', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '502';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 502, 0, 0
                    , 195.00, -9, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*195.00," WHERE transferproductid = 406;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('502', '1', '9', '1', '406', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('502', '6', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 502, 0, 0
                    , 195.00, 9, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('502', '6', '9', '0', '406', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '498', '13', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '498';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 498, 0, 0
                    , 170.00, -13, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*170.00," WHERE transferproductid = 407;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('498', '1', '13', '1', '407', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('498', '6', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 498, 0, 0
                    , 170.00, 13, 0, 0, 1, '2021-11-08 16:51:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('498', '6', '13', '0', '407', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '496', '13', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:38',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '496';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 496, 0, 0
                    , 150.00, -13, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*150.00," WHERE transferproductid = 408;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('496', '1', '13', '1', '408', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('496', '6', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 496, 0, 0
                    , 150.00, 13, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('496', '6', '13', '0', '408', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '478', '20', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:38',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '478';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 478, 0, 0
                    , 180.00, -20, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*180.00," WHERE transferproductid = 409;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('478', '1', '20', '1', '409', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('478', '6', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 478, 0, 0
                    , 180.00, 20, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('478', '6', '20', '0', '409', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '491', '14', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:38',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '491';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 491, 0, 0
                    , 165.00, -14, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*165.00," WHERE transferproductid = 410;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('491', '1', '14', '1', '410', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('491', '6', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 491, 0, 0
                    , 165.00, 14, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('491', '6', '14', '0', '410', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '492', '52', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:38',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '492';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 492, 0, 0
                    , 180.00, -52, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-52, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "52*2021-11-08*180.00," WHERE transferproductid = 411;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('492', '1', '52', '1', '411', 'تحويل منتجات من المخزن', 'storemovementController.php', '52.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('492', '6', '52', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 492, 0, 0
                    , 180.00, 52, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+52, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('492', '6', '52', '0', '411', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '52', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '486', '8', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:38',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '486';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 486, 0, 0
                    , 165.00, -8, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*165.00," WHERE transferproductid = 412;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('486', '1', '8', '1', '412', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('486', '6', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 486, 0, 0
                    , 165.00, 8, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('486', '6', '8', '0', '412', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '493', '31', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:38',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '493';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 493, 0, 0
                    , 165.00, -31, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2021-11-08*165.00," WHERE transferproductid = 413;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('493', '1', '31', '1', '413', 'تحويل منتجات من المخزن', 'storemovementController.php', '31.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('493', '6', '31', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 493, 0, 0
                    , 165.00, 31, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('493', '6', '31', '0', '413', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '494', '31', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:38',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '494';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 494, 0, 0
                    , 180.00, -31, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2021-11-08*180.00," WHERE transferproductid = 414;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('494', '1', '31', '1', '414', 'تحويل منتجات من المخزن', 'storemovementController.php', '31.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('494', '6', '31', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 494, 0, 0
                    , 180.00, 31, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('494', '6', '31', '0', '414', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '505', '5', '2021-11-08', '1', '0','11',null,null,'2021-11-08 16:51:38',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '505';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 505, 0, 0
                    , 180.00, -5, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*180.00," WHERE transferproductid = 415;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('505', '1', '5', '1', '415', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '3', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('505', '6', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 505, 0, 0
                    , 180.00, 5, 0, 0, 1, '2021-11-08 16:51:38')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 16:51:38' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('505', '6', '5', '0', '415', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:21:38";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 16:51:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 16:51:38', '1', 'sucess', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:21:40";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 16:51:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 16:51:40', '1', 'show', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:22:34";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 16:52:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 16:52:34', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:38:26";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:08:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:08:26', '1', 'add', '102.45.243.181', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(12,1,6,480,18,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 17:08:26',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '-12', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '480';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 480, 0, 0
                    , 180.00, -18, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*180.00," WHERE transferproductid = 416;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('480', '1', '18', '1', '416', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '-12', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('480', '6', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 480, 0, 0
                    , 180.00, 18, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('480', '6', '18', '0', '416', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '487', '23', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '487';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 487, 0, 0
                    , 140.00, -23, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*140.00," WHERE transferproductid = 417;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('487', '1', '23', '1', '417', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('487', '6', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 487, 0, 0
                    , 140.00, 23, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('487', '6', '23', '0', '417', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '483', '11', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '483';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 483, 0, 0
                    , 150.00, -11, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*150.00," WHERE transferproductid = 418;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('483', '1', '11', '1', '418', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('483', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 483, 0, 0
                    , 150.00, 11, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('483', '6', '11', '0', '418', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '474', '22', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '49', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '474';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 474, 0, 0
                    , 170.00, -22, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*170.00," WHERE transferproductid = 419;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('474', '1', '22', '1', '419', 'تحويل منتجات من المخزن', 'storemovementController.php', '71.00', '49', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('474', '6', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 474, 0, 0
                    , 170.00, 22, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('474', '6', '22', '0', '419', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '519', '18', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '519';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 519, 0, 0
                    , 175.00, -18, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*175.00," WHERE transferproductid = 420;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('519', '1', '18', '1', '420', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('519', '6', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 519, 0, 0
                    , 175.00, 18, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('519', '6', '18', '0', '420', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '346', '1', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '346';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 346, 0, 0
                    , 120.00, -1, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*120.00," WHERE transferproductid = 421;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('346', '1', '1', '1', '421', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('346', '6', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 346, 0, 0
                    , 120.00, 1, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('346', '6', '1', '0', '421', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '337', '1', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '337';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 337, 0, 0
                    , 120.00, -1, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*120.00," WHERE transferproductid = 422;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('337', '1', '1', '1', '422', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('337', '6', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 337, 0, 0
                    , 120.00, 1, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('337', '6', '1', '0', '422', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '338', '1', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '338';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 338, 0, 0
                    , 160.00, -1, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*160.00," WHERE transferproductid = 423;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('338', '1', '1', '1', '423', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('338', '6', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 338, 0, 0
                    , 160.00, 1, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('338', '6', '1', '0', '423', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '311', '87', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '127', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '311';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 311, 0, 0
                    , 75.00, -87, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 75.00,
                        buyQuantity =buyQuantity+-87, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "87*2021-11-08*75.00," WHERE transferproductid = 424;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('311', '1', '87', '1', '424', 'تحويل منتجات من المخزن', 'storemovementController.php', '214.00', '127', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('311', '6', '87', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 311, 0, 0
                    , 75.00, 87, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+87, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('311', '6', '87', '0', '424', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '87', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '521', '99', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '521';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 521, 0, 0
                    , 100.00, -99, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-99, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "99*2021-11-08*100.00," WHERE transferproductid = 425;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('521', '1', '99', '1', '425', 'تحويل منتجات من المخزن', 'storemovementController.php', '119.00', '20', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('521', '6', '99', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 521, 0, 0
                    , 100.00, 99, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+99, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('521', '6', '99', '0', '425', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '99', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '542', '221', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '209', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '542';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 542, 0, 0
                    , 100.00, -221, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-221, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "221*2021-11-08*100.00," WHERE transferproductid = 426;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('542', '1', '221', '1', '426', 'تحويل منتجات من المخزن', 'storemovementController.php', '430.00', '209', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('542', '6', '221', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 542, 0, 0
                    , 100.00, 221, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+221, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('542', '6', '221', '0', '426', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '221', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '326', '15', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '326';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 326, 0, 0
                    , 120.00, -15, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*120.00," WHERE transferproductid = 427;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('326', '1', '15', '1', '427', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('326', '6', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 326, 0, 0
                    , 120.00, 15, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('326', '6', '15', '0', '427', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '344', '3', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '344';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 344, 0, 0
                    , 120.00, -3, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*120.00," WHERE transferproductid = 428;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('344', '1', '3', '1', '428', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('344', '6', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 344, 0, 0
                    , 120.00, 3, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('344', '6', '3', '0', '428', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '469', '7', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '469';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 469, 0, 0
                    , 170.00, -7, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*170.00," WHERE transferproductid = 429;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('469', '1', '7', '1', '429', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '20', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('469', '6', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 469, 0, 0
                    , 170.00, 7, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('469', '6', '7', '0', '429', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '471', '8', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '471';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 471, 0, 0
                    , 165.00, -8, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*165.00," WHERE transferproductid = 430;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('471', '1', '8', '1', '430', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('471', '6', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 471, 0, 0
                    , 165.00, 8, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('471', '6', '8', '0', '430', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '467', '4', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '467';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 467, 0, 0
                    , 165.00, -4, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*165.00," WHERE transferproductid = 431;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('467', '1', '4', '1', '431', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('467', '6', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 467, 0, 0
                    , 165.00, 4, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('467', '6', '4', '0', '431', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '468', '8', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '468';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 468, 0, 0
                    , 165.00, -8, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*165.00," WHERE transferproductid = 432;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('468', '1', '8', '1', '432', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('468', '6', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 468, 0, 0
                    , 165.00, 8, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('468', '6', '8', '0', '432', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '334', '7', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '334';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 334, 0, 0
                    , 180.00, -7, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*180.00," WHERE transferproductid = 433;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('334', '1', '7', '1', '433', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('334', '6', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 334, 0, 0
                    , 180.00, 7, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('334', '6', '7', '0', '433', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '375', '18', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '26', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '375';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 375, 0, 0
                    , 160.00, -18, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*160.00," WHERE transferproductid = 434;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('375', '1', '18', '1', '434', 'تحويل منتجات من المخزن', 'storemovementController.php', '44.00', '26', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('375', '6', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 375, 0, 0
                    , 160.00, 18, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('375', '6', '18', '0', '434', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '372', '12', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '372';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 372, 0, 0
                    , 160.00, -12, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*160.00," WHERE transferproductid = 435;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('372', '1', '12', '1', '435', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('372', '6', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 372, 0, 0
                    , 160.00, 12, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('372', '6', '12', '0', '435', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '370', '10', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '370';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 370, 0, 0
                    , 160.00, -10, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*160.00," WHERE transferproductid = 436;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('370', '1', '10', '1', '436', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('370', '6', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 370, 0, 0
                    , 160.00, 10, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('370', '6', '10', '0', '436', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '335', '4', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '335';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 335, 0, 0
                    , 160.00, -4, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*160.00," WHERE transferproductid = 437;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('335', '1', '4', '1', '437', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('335', '6', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 335, 0, 0
                    , 160.00, 4, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('335', '6', '4', '0', '437', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '503', '20', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '503';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 503, 0, 0
                    , 215.00, -20, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*215.00," WHERE transferproductid = 438;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('503', '1', '20', '1', '438', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('503', '6', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 503, 0, 0
                    , 215.00, 20, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('503', '6', '20', '0', '438', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '341', '19', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '341';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 341, 0, 0
                    , 120.00, -19, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*120.00," WHERE transferproductid = 439;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('341', '1', '19', '1', '439', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('341', '6', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 341, 0, 0
                    , 120.00, 19, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('341', '6', '19', '0', '439', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '330', '1', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '330';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 330, 0, 0
                    , 120.00, -1, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*120.00," WHERE transferproductid = 440;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('330', '1', '1', '1', '440', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('330', '6', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 330, 0, 0
                    , 120.00, 1, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('330', '6', '1', '0', '440', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '426', '14', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '426';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 426, 0, 0
                    , 145.00, -14, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*145.00," WHERE transferproductid = 441;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('426', '1', '14', '1', '441', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('426', '6', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 426, 0, 0
                    , 145.00, 14, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('426', '6', '14', '0', '441', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '423', '11', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '423';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 423, 0, 0
                    , 145.00, -11, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*145.00," WHERE transferproductid = 442;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('423', '1', '11', '1', '442', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('423', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 423, 0, 0
                    , 145.00, 11, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('423', '6', '11', '0', '442', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '422', '3', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '422';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 422, 0, 0
                    , 145.00, -3, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*145.00," WHERE transferproductid = 443;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('422', '1', '3', '1', '443', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('422', '6', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 422, 0, 0
                    , 145.00, 3, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('422', '6', '3', '0', '443', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '427', '2', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '427';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 427, 0, 0
                    , 145.00, -2, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*145.00," WHERE transferproductid = 444;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('427', '1', '2', '1', '444', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('427', '6', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 427, 0, 0
                    , 145.00, 2, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('427', '6', '2', '0', '444', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '429', '27', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '429';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 429, 0, 0
                    , 170.00, -27, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*170.00," WHERE transferproductid = 445;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('429', '1', '27', '1', '445', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('429', '6', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 429, 0, 0
                    , 170.00, 27, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('429', '6', '27', '0', '445', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '428', '16', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '428';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 428, 0, 0
                    , 170.00, -16, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*170.00," WHERE transferproductid = 446;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('428', '1', '16', '1', '446', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('428', '6', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 428, 0, 0
                    , 170.00, 16, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('428', '6', '16', '0', '446', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '419', '23', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '419';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 419, 0, 0
                    , 145.00, -23, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*145.00," WHERE transferproductid = 447;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('419', '1', '23', '1', '447', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('419', '6', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 419, 0, 0
                    , 145.00, 23, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('419', '6', '23', '0', '447', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '420', '7', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '420';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 420, 0, 0
                    , 145.00, -7, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*145.00," WHERE transferproductid = 448;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('420', '1', '7', '1', '448', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('420', '6', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 420, 0, 0
                    , 145.00, 7, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('420', '6', '7', '0', '448', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '435', '13', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '435';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 435, 0, 0
                    , 170.00, -13, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*170.00," WHERE transferproductid = 449;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('435', '1', '13', '1', '449', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '9', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('435', '6', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 435, 0, 0
                    , 170.00, 13, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('435', '6', '13', '0', '449', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '431', '101', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '431';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 431, 0, 0
                    , 170.00, -101, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-101, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "101*2021-11-08*170.00," WHERE transferproductid = 450;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('431', '1', '101', '1', '450', 'تحويل منتجات من المخزن', 'storemovementController.php', '101.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('431', '6', '101', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 431, 0, 0
                    , 170.00, 101, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+101, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('431', '6', '101', '0', '450', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '101', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '421', '12', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '421';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 421, 0, 0
                    , 145.00, -12, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*145.00," WHERE transferproductid = 451;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('421', '1', '12', '1', '451', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('421', '6', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 421, 0, 0
                    , 145.00, 12, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('421', '6', '12', '0', '451', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '504', '15', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '504';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 504, 0, 0
                    , 155.00, -15, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*155.00," WHERE transferproductid = 452;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('504', '1', '15', '1', '452', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('504', '6', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 504, 0, 0
                    , 155.00, 15, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('504', '6', '15', '0', '452', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '477', '22', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '477';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 477, 0, 0
                    , 155.00, -22, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*155.00," WHERE transferproductid = 453;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('477', '1', '22', '1', '453', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('477', '6', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 477, 0, 0
                    , 155.00, 22, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('477', '6', '22', '0', '453', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '457', '9', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '457';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 457, 0, 0
                    , 155.00, -9, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*155.00," WHERE transferproductid = 454;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('457', '1', '9', '1', '454', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '21', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('457', '6', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 457, 0, 0
                    , 155.00, 9, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('457', '6', '9', '0', '454', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '459', '6', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '459';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 459, 0, 0
                    , 160.00, -6, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*160.00," WHERE transferproductid = 455;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('459', '1', '6', '1', '455', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('459', '6', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 459, 0, 0
                    , 160.00, 6, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('459', '6', '6', '0', '455', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '304', '3', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '304';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 304, 0, 0
                    , 145.00, -3, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*145.00," WHERE transferproductid = 456;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('304', '1', '3', '1', '456', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '33', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('304', '6', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 304, 0, 0
                    , 145.00, 3, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('304', '6', '3', '0', '456', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '418', '10', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '418';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 418, 0, 0
                    , 140.00, -10, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*140.00," WHERE transferproductid = 457;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('418', '1', '10', '1', '457', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('418', '6', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 418, 0, 0
                    , 140.00, 10, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('418', '6', '10', '0', '457', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '414', '11', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '414';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 414, 0, 0
                    , 140.00, -11, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*140.00," WHERE transferproductid = 458;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('414', '1', '11', '1', '458', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('414', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 414, 0, 0
                    , 140.00, 11, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('414', '6', '11', '0', '458', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '415', '11', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '415';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 415, 0, 0
                    , 140.00, -11, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*140.00," WHERE transferproductid = 459;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('415', '1', '11', '1', '459', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('415', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 415, 0, 0
                    , 140.00, 11, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('415', '6', '11', '0', '459', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '413', '22', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '413';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 413, 0, 0
                    , 140.00, -22, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*140.00," WHERE transferproductid = 460;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('413', '1', '22', '1', '460', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('413', '6', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 413, 0, 0
                    , 140.00, 22, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('413', '6', '22', '0', '460', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '417', '25', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '417';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 417, 0, 0
                    , 140.00, -25, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2021-11-08*140.00," WHERE transferproductid = 461;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('417', '1', '25', '1', '461', 'تحويل منتجات من المخزن', 'storemovementController.php', '25.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('417', '6', '25', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 417, 0, 0
                    , 140.00, 25, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('417', '6', '25', '0', '461', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '444', '98', '2021-11-08', '1', '0','12',null,null,'2021-11-08 17:08:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '134', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '444';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 444, 0, 0
                    , 135.00, -98, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-98, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "98*2021-11-08*135.00," WHERE transferproductid = 462;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('444', '1', '98', '1', '462', 'تحويل منتجات من المخزن', 'storemovementController.php', '232.00', '134', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('444', '6', '98', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 444, 0, 0
                    , 135.00, 98, 0, 0, 1, '2021-11-08 17:08:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+98, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:08:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('444', '6', '98', '0', '462', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '98', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:38:27";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:08:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:08:27', '1', 'sucess', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:38:29";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:08:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:08:29', '1', 'show', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:38:42";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:08:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:08:42', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:48:44";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:18:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:18:44', '1', 'add', '102.45.243.181', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(13,1,6,412,2,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 17:18:44',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '412';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 412, 0, 0
                    , 140.00, -2, 0, 0, 1, '2021-11-08 17:18:44')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*140.00," WHERE transferproductid = 463;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('412', '1', '2', '1', '463', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('412', '6', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 412, 0, 0
                    , 140.00, 2, 0, 0, 1, '2021-11-08 17:18:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('412', '6', '2', '0', '463', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '416', '2', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '416';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 416, 0, 0
                    , 140.00, -2, 0, 0, 1, '2021-11-08 17:18:44')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*140.00," WHERE transferproductid = 464;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('416', '1', '2', '1', '464', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('416', '6', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 416, 0, 0
                    , 140.00, 2, 0, 0, 1, '2021-11-08 17:18:44')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:44' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('416', '6', '2', '0', '464', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '470', '79', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:44',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '470';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 470, 0, 0
                    , 195.00, -79, 0, 0, 1, '2021-11-08 17:18:44')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-79, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:44' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "79*2021-11-08*195.00," WHERE transferproductid = 465;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('470', '1', '79', '1', '465', 'تحويل منتجات من المخزن', 'storemovementController.php', '97.00', '18', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('470', '6', '79', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 470, 0, 0
                    , 195.00, 79, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+79, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('470', '6', '79', '0', '465', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '79', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '499', '24', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '499';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 499, 0, 0
                    , 180.00, -24, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*180.00," WHERE transferproductid = 466;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('499', '1', '24', '1', '466', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('499', '6', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 499, 0, 0
                    , 180.00, 24, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('499', '6', '24', '0', '466', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '424', '20', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '424';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 424, 0, 0
                    , 155.00, -20, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*155.00," WHERE transferproductid = 467;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('424', '1', '20', '1', '467', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('424', '6', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 424, 0, 0
                    , 155.00, 20, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('424', '6', '20', '0', '467', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '537', '22', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '537';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 537, 0, 0
                    , 195.00, -22, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*195.00," WHERE transferproductid = 468;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('537', '1', '22', '1', '468', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '-1', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('537', '6', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 537, 0, 0
                    , 195.00, 22, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('537', '6', '22', '0', '468', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '374', '36', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '374';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 374, 0, 0
                    , 160.00, -36, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2021-11-08*160.00," WHERE transferproductid = 469;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('374', '1', '36', '1', '469', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('374', '6', '36', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 374, 0, 0
                    , 160.00, 36, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('374', '6', '36', '0', '469', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '303', '18', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-17', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '303';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 303, 0, 0
                    , 165.00, -18, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*165.00," WHERE transferproductid = 470;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('303', '1', '18', '1', '470', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '-17', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('303', '6', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 303, 0, 0
                    , 165.00, 18, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('303', '6', '18', '0', '470', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '536', '24', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '536';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 536, 0, 0
                    , 195.00, -24, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*195.00," WHERE transferproductid = 471;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('536', '1', '24', '1', '471', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('536', '6', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 536, 0, 0
                    , 195.00, 24, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('536', '6', '24', '0', '471', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '529', '9', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '529';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 529, 0, 0
                    , 195.00, -9, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*195.00," WHERE transferproductid = 472;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('529', '1', '9', '1', '472', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('529', '6', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 529, 0, 0
                    , 195.00, 9, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('529', '6', '9', '0', '472', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '538', '22', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '538';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 538, 0, 0
                    , 195.00, -22, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*195.00," WHERE transferproductid = 473;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('538', '1', '22', '1', '473', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('538', '6', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 538, 0, 0
                    , 195.00, 22, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('538', '6', '22', '0', '473', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '497', '16', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '497';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 497, 0, 0
                    , 165.00, -16, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*165.00," WHERE transferproductid = 474;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('497', '1', '16', '1', '474', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('497', '6', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 497, 0, 0
                    , 165.00, 16, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('497', '6', '16', '0', '474', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '530', '6', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '530';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 530, 0, 0
                    , 195.00, -6, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*195.00," WHERE transferproductid = 475;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('530', '1', '6', '1', '475', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('530', '6', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 530, 0, 0
                    , 195.00, 6, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('530', '6', '6', '0', '475', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '479', '3', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '479';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 479, 0, 0
                    , 165.00, -3, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*165.00," WHERE transferproductid = 476;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('479', '1', '3', '1', '476', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('479', '6', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 479, 0, 0
                    , 165.00, 3, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('479', '6', '3', '0', '476', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '489', '6', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '489';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 489, 0, 0
                    , 170.00, -6, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*170.00," WHERE transferproductid = 477;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('489', '1', '6', '1', '477', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('489', '6', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 489, 0, 0
                    , 170.00, 6, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('489', '6', '6', '0', '477', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '501', '4', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '501';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 501, 0, 0
                    , 165.00, -4, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*165.00," WHERE transferproductid = 478;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('501', '1', '4', '1', '478', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('501', '6', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 501, 0, 0
                    , 165.00, 4, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('501', '6', '4', '0', '478', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '531', '2', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '531';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 531, 0, 0
                    , 195.00, -2, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*195.00," WHERE transferproductid = 479;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('531', '1', '2', '1', '479', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('531', '6', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 531, 0, 0
                    , 195.00, 2, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('531', '6', '2', '0', '479', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '526', '4', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '526';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 526, 0, 0
                    , 195.00, -4, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*195.00," WHERE transferproductid = 480;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('526', '1', '4', '1', '480', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('526', '6', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 526, 0, 0
                    , 195.00, 4, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('526', '6', '4', '0', '480', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '533', '13', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '533';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 533, 0, 0
                    , 195.00, -13, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*195.00," WHERE transferproductid = 481;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('533', '1', '13', '1', '481', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('533', '6', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 533, 0, 0
                    , 195.00, 13, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('533', '6', '13', '0', '481', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '527', '12', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '527';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 527, 0, 0
                    , 195.00, -12, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*195.00," WHERE transferproductid = 482;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('527', '1', '12', '1', '482', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('527', '6', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 527, 0, 0
                    , 195.00, 12, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('527', '6', '12', '0', '482', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '485', '14', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '485';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 485, 0, 0
                    , 150.00, -14, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*150.00," WHERE transferproductid = 483;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('485', '1', '14', '1', '483', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('485', '6', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 485, 0, 0
                    , 150.00, 14, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('485', '6', '14', '0', '483', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '534', '13', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '534';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 534, 0, 0
                    , 195.00, -13, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*195.00," WHERE transferproductid = 484;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('534', '1', '13', '1', '484', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('534', '6', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 534, 0, 0
                    , 195.00, 13, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('534', '6', '13', '0', '484', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '535', '27', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '535';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 535, 0, 0
                    , 195.00, -27, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*195.00," WHERE transferproductid = 485;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('535', '1', '27', '1', '485', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('535', '6', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 535, 0, 0
                    , 195.00, 27, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('535', '6', '27', '0', '485', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '532', '23', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '532';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 532, 0, 0
                    , 195.00, -23, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*195.00," WHERE transferproductid = 486;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('532', '1', '23', '1', '486', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('532', '6', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 532, 0, 0
                    , 195.00, 23, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('532', '6', '23', '0', '486', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '453', '6', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '453';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 453, 0, 0
                    , 195.00, -6, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*195.00," WHERE transferproductid = 487;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('453', '1', '6', '1', '487', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('453', '6', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 453, 0, 0
                    , 195.00, 6, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('453', '6', '6', '0', '487', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '455', '11', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '455';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 455, 0, 0
                    , 195.00, -11, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*195.00," WHERE transferproductid = 488;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('455', '1', '11', '1', '488', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('455', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 455, 0, 0
                    , 195.00, 11, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('455', '6', '11', '0', '488', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '454', '12', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '454';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 454, 0, 0
                    , 195.00, -12, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*195.00," WHERE transferproductid = 489;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('454', '1', '12', '1', '489', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('454', '6', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 454, 0, 0
                    , 195.00, 12, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('454', '6', '12', '0', '489', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '452', '1', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '452';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 452, 0, 0
                    , 195.00, -1, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*195.00," WHERE transferproductid = 490;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('452', '1', '1', '1', '490', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('452', '6', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 452, 0, 0
                    , 195.00, 1, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('452', '6', '1', '0', '490', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '382', '26', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '61', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '382';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 382, 0, 0
                    , 190.00, -26, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*190.00," WHERE transferproductid = 491;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '1', '26', '1', '491', 'تحويل منتجات من المخزن', 'storemovementController.php', '87.00', '61', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('382', '6', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 382, 0, 0
                    , 190.00, 26, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '6', '26', '0', '491', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '383', '21', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '29', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '383';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 383, 0, 0
                    , 185.00, -21, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*185.00," WHERE transferproductid = 492;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '1', '21', '1', '492', 'تحويل منتجات من المخزن', 'storemovementController.php', '50.00', '29', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('383', '6', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 383, 0, 0
                    , 185.00, 21, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '6', '21', '0', '492', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '384', '10', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '384';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 384, 0, 0
                    , 185.00, -10, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*185.00," WHERE transferproductid = 493;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '1', '10', '1', '493', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '6', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('384', '6', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 384, 0, 0
                    , 185.00, 10, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '6', '10', '0', '493', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '385', '16', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '385';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 385, 0, 0
                    , 185.00, -16, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*185.00," WHERE transferproductid = 494;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '1', '16', '1', '494', 'تحويل منتجات من المخزن', 'storemovementController.php', '50.00', '34', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('385', '6', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 385, 0, 0
                    , 185.00, 16, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '6', '16', '0', '494', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '389', '15', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '389';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 389, 0, 0
                    , 185.00, -15, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*185.00," WHERE transferproductid = 495;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('389', '1', '15', '1', '495', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('389', '6', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 389, 0, 0
                    , 185.00, 15, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('389', '6', '15', '0', '495', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '513', '17', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '513';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 513, 0, 0
                    , 210.00, -17, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*210.00," WHERE transferproductid = 496;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '1', '17', '1', '496', 'تحويل منتجات من المخزن', 'storemovementController.php', '72.00', '55', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('513', '6', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 513, 0, 0
                    , 210.00, 17, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '6', '17', '0', '496', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '514', '15', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '66', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '514';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 514, 0, 0
                    , 210.00, -15, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*210.00," WHERE transferproductid = 497;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '1', '15', '1', '497', 'تحويل منتجات من المخزن', 'storemovementController.php', '81.00', '66', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('514', '6', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 514, 0, 0
                    , 210.00, 15, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '6', '15', '0', '497', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '515', '26', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '47', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '515';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 515, 0, 0
                    , 220.00, -26, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*220.00," WHERE transferproductid = 498;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '1', '26', '1', '498', 'تحويل منتجات من المخزن', 'storemovementController.php', '73.00', '47', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('515', '6', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 515, 0, 0
                    , 220.00, 26, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '6', '26', '0', '498', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '516', '18', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '516';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 516, 0, 0
                    , 220.00, -18, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*220.00," WHERE transferproductid = 499;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '1', '18', '1', '499', 'تحويل منتجات من المخزن', 'storemovementController.php', '66.00', '48', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('516', '6', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 516, 0, 0
                    , 220.00, 18, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '6', '18', '0', '499', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '517', '19', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '41', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '517';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 517, 0, 0
                    , 210.00, -19, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*210.00," WHERE transferproductid = 500;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '1', '19', '1', '500', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '41', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('517', '6', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 517, 0, 0
                    , 210.00, 19, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '6', '19', '0', '500', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '518', '21', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '82', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '518';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 518, 0, 0
                    , 210.00, -21, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*210.00," WHERE transferproductid = 501;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '1', '21', '1', '501', 'تحويل منتجات من المخزن', 'storemovementController.php', '103.00', '82', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('518', '6', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 518, 0, 0
                    , 210.00, 21, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '6', '21', '0', '501', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '450', '19', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '450';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 450, 0, 0
                    , 280.00, -19, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*280.00," WHERE transferproductid = 502;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('450', '1', '19', '1', '502', 'تحويل منتجات من المخزن', 'storemovementController.php', '56.00', '37', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('450', '6', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 450, 0, 0
                    , 280.00, 19, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('450', '6', '19', '0', '502', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '128', '15', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '128';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 128, 0, 0
                    , 235.00, -15, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*235.00," WHERE transferproductid = 503;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('128', '1', '15', '1', '503', 'تحويل منتجات من المخزن', 'storemovementController.php', '40.00', '25', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('128', '6', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 128, 0, 0
                    , 235.00, 15, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('128', '6', '15', '0', '503', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '126', '25', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '126';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 126, 0, 0
                    , 195.00, -25, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2021-11-08*195.00," WHERE transferproductid = 504;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('126', '1', '25', '1', '504', 'تحويل منتجات من المخزن', 'storemovementController.php', '101.00', '76', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('126', '6', '25', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 126, 0, 0
                    , 195.00, 25, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('126', '6', '25', '0', '504', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '125', '24', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '125';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 125, 0, 0
                    , 185.00, -24, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*185.00," WHERE transferproductid = 505;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('125', '1', '24', '1', '505', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '37', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('125', '6', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 125, 0, 0
                    , 185.00, 24, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('125', '6', '24', '0', '505', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '124', '24', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '73', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '124';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 124, 0, 0
                    , 185.00, -24, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*185.00," WHERE transferproductid = 506;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('124', '1', '24', '1', '506', 'تحويل منتجات من المخزن', 'storemovementController.php', '97.00', '73', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('124', '6', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 124, 0, 0
                    , 185.00, 24, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('124', '6', '24', '0', '506', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '249', '11', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-8', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '249';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 249, 0, 0
                    , 230.00, -11, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 230.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*230.00," WHERE transferproductid = 507;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('249', '1', '11', '1', '507', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '-8', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('249', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 249, 0, 0
                    , 230.00, 11, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('249', '6', '11', '0', '507', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '252', '6', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '252';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 252, 0, 0
                    , 235.00, -6, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*235.00," WHERE transferproductid = 508;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('252', '1', '6', '1', '508', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('252', '6', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 252, 0, 0
                    , 235.00, 6, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('252', '6', '6', '0', '508', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '251', '19', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '251';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 251, 0, 0
                    , 210.00, -19, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*210.00," WHERE transferproductid = 509;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('251', '1', '19', '1', '509', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('251', '6', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 251, 0, 0
                    , 210.00, 19, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('251', '6', '19', '0', '509', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '254', '10', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '254';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 254, 0, 0
                    , 270.00, -10, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*270.00," WHERE transferproductid = 510;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('254', '1', '10', '1', '510', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '12', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('254', '6', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 254, 0, 0
                    , 270.00, 10, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('254', '6', '10', '0', '510', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '6', '255', '11', '2021-11-08', '1', '0','13',null,null,'2021-11-08 17:18:45',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '255';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 255, 0, 0
                    , 255.00, -11, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyprice = 255.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*255.00," WHERE transferproductid = 511;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('255', '1', '11', '1', '511', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '13', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('255', '6', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 6, 255, 0, 0
                    , 255.00, 11, 0, 0, 1, '2021-11-08 17:18:45')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:18:45' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('255', '6', '11', '0', '511', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:48:46";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:18:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:18:46', '1', 'sucess', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 13:48:50";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:18:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:18:50', '1', 'show', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:06:19";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:36:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:36:19', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:17:48";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:47:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:47:48', '1', 'add', '102.45.243.181', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(14,1,8,90,15,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 17:47:48',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '79', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '90';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 90, 0, 0
                    , 165.00, -15, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*165.00," WHERE transferproductid = 512;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '1', '15', '1', '512', 'تحويل منتجات من المخزن', 'storemovementController.php', '94.00', '79', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('90', '8', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 90, 0, 0
                    , 165.00, 15, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '8', '15', '0', '512', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '106', '5', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:48',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '106';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 106, 0, 0
                    , 155.00, -5, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*155.00," WHERE transferproductid = 513;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('106', '1', '5', '1', '513', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '19', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('106', '8', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 106, 0, 0
                    , 155.00, 5, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('106', '8', '5', '0', '513', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '92', '9', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:48',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-4', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '92';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 92, 0, 0
                    , 145.00, -9, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*145.00," WHERE transferproductid = 514;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('92', '1', '9', '1', '514', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '-4', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('92', '8', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 92, 0, 0
                    , 145.00, 9, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('92', '8', '9', '0', '514', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '311', '22', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:48',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '311';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 311, 0, 0
                    , 75.00, -22, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyprice = 75.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*75.00," WHERE transferproductid = 515;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('311', '1', '22', '1', '515', 'تحويل منتجات من المخزن', 'storemovementController.php', '127.00', '105', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('311', '8', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 311, 0, 0
                    , 75.00, 22, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('311', '8', '22', '0', '515', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '313', '13', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:48',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '313';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 313, 0, 0
                    , 140.00, -13, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*140.00," WHERE transferproductid = 516;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('313', '1', '13', '1', '516', 'تحويل منتجات من المخزن', 'storemovementController.php', '28.00', '15', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('313', '8', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 313, 0, 0
                    , 140.00, 13, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('313', '8', '13', '0', '516', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '303', '1', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:48',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-18', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '303';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 303, 0, 0
                    , 165.00, -1, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*165.00," WHERE transferproductid = 517;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('303', '1', '1', '1', '517', 'تحويل منتجات من المخزن', 'storemovementController.php', '-17.00', '-18', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('303', '8', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 303, 0, 0
                    , 165.00, 1, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('303', '8', '1', '0', '517', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '1', '16', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:48',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '1';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 1, 0, 0
                    , 150.00, -16, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*150.00," WHERE transferproductid = 518;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1', '1', '16', '1', '518', 'تحويل منتجات من المخزن', 'storemovementController.php', '112.00', '96', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1', '8', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 1, 0, 0
                    , 150.00, 16, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1', '8', '16', '0', '518', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '10', '9', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:48',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '103', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '10';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 10, 0, 0
                    , 155.00, -9, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*155.00," WHERE transferproductid = 519;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('10', '1', '9', '1', '519', 'تحويل منتجات من المخزن', 'storemovementController.php', '112.00', '103', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('10', '8', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 10, 0, 0
                    , 155.00, 9, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('10', '8', '9', '0', '519', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '30', '8', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:48',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '30';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 30, 0, 0
                    , 170.00, -8, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*170.00," WHERE transferproductid = 520;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('30', '1', '8', '1', '520', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '5', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('30', '8', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 30, 0, 0
                    , 170.00, 8, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('30', '8', '8', '0', '520', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '31', '5', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:48',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '123', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '31';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 31, 0, 0
                    , 180.00, -5, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*180.00," WHERE transferproductid = 521;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('31', '1', '5', '1', '521', 'تحويل منتجات من المخزن', 'storemovementController.php', '128.00', '123', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('31', '8', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 31, 0, 0
                    , 180.00, 5, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('31', '8', '5', '0', '521', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '32', '5', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:48',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '32';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 32, 0, 0
                    , 170.00, -5, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*170.00," WHERE transferproductid = 522;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('32', '1', '5', '1', '522', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '10', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('32', '8', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 32, 0, 0
                    , 170.00, 5, 0, 0, 1, '2021-11-08 17:47:48')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:48' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('32', '8', '5', '0', '522', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '11', '58', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '11';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 11, 0, 0
                    , 170.00, -58, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-58, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "58*2021-11-08*170.00," WHERE transferproductid = 523;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('11', '1', '58', '1', '523', 'تحويل منتجات من المخزن', 'storemovementController.php', '109.00', '51', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('11', '8', '58', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 11, 0, 0
                    , 170.00, 58, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+58, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('11', '8', '58', '0', '523', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '58', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '33', '1', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '33';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 33, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 524;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('33', '1', '1', '1', '524', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '1', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('33', '8', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 33, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('33', '8', '1', '0', '524', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '35', '1', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '35';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 35, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 525;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('35', '1', '1', '1', '525', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '1', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('35', '8', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 35, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('35', '8', '1', '0', '525', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '36', '55', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '36';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 36, 0, 0
                    , 145.00, -55, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-55, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "55*2021-11-08*145.00," WHERE transferproductid = 526;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('36', '1', '55', '1', '526', 'تحويل منتجات من المخزن', 'storemovementController.php', '55.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('36', '8', '55', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 36, 0, 0
                    , 145.00, 55, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('36', '8', '55', '0', '526', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '55', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '37', '26', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '37';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 37, 0, 0
                    , 145.00, -26, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*145.00," WHERE transferproductid = 527;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('37', '1', '26', '1', '527', 'تحويل منتجات من المخزن', 'storemovementController.php', '26.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('37', '8', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 37, 0, 0
                    , 145.00, 26, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('37', '8', '26', '0', '527', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '38', '1', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '38';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 38, 0, 0
                    , 145.00, -1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*145.00," WHERE transferproductid = 528;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('38', '1', '1', '1', '528', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('38', '8', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 38, 0, 0
                    , 145.00, 1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('38', '8', '1', '0', '528', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '39', '35', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '39';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 39, 0, 0
                    , 145.00, -35, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2021-11-08*145.00," WHERE transferproductid = 529;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('39', '1', '35', '1', '529', 'تحويل منتجات من المخزن', 'storemovementController.php', '35.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('39', '8', '35', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 39, 0, 0
                    , 145.00, 35, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('39', '8', '35', '0', '529', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '13', '17', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '13';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 13, 0, 0
                    , 175.00, -17, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*175.00," WHERE transferproductid = 530;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('13', '1', '17', '1', '530', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('13', '8', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 13, 0, 0
                    , 175.00, 17, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('13', '8', '17', '0', '530', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '14', '15', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '88', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '14';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 14, 0, 0
                    , 150.00, -15, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*150.00," WHERE transferproductid = 531;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('14', '1', '15', '1', '531', 'تحويل منتجات من المخزن', 'storemovementController.php', '103.00', '88', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('14', '8', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 14, 0, 0
                    , 150.00, 15, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('14', '8', '15', '0', '531', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '15', '17', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '61', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '15';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 15, 0, 0
                    , 175.00, -17, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*175.00," WHERE transferproductid = 532;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('15', '1', '17', '1', '532', 'تحويل منتجات من المخزن', 'storemovementController.php', '78.00', '61', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('15', '8', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 15, 0, 0
                    , 175.00, 17, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('15', '8', '17', '0', '532', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '17', '21', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '136', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '17';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 17, 0, 0
                    , 185.00, -21, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*185.00," WHERE transferproductid = 533;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('17', '1', '21', '1', '533', 'تحويل منتجات من المخزن', 'storemovementController.php', '157.00', '136', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('17', '8', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 17, 0, 0
                    , 185.00, 21, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('17', '8', '21', '0', '533', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '18', '36', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '139', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '18';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 18, 0, 0
                    , 185.00, -36, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2021-11-08*185.00," WHERE transferproductid = 534;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('18', '1', '36', '1', '534', 'تحويل منتجات من المخزن', 'storemovementController.php', '175.00', '139', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('18', '8', '36', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 18, 0, 0
                    , 185.00, 36, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('18', '8', '36', '0', '534', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '19', '9', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '19';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 19, 0, 0
                    , 170.00, -9, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*170.00," WHERE transferproductid = 535;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('19', '1', '9', '1', '535', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '4', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('19', '8', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 19, 0, 0
                    , 170.00, 9, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('19', '8', '9', '0', '535', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '2', '8', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '53', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '2';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 2, 0, 0
                    , 175.00, -8, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*175.00," WHERE transferproductid = 536;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2', '1', '8', '1', '536', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '53', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2', '8', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 2, 0, 0
                    , 175.00, 8, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2', '8', '8', '0', '536', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '20', '8', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '47', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '20';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 20, 0, 0
                    , 175.00, -8, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*175.00," WHERE transferproductid = 537;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('20', '1', '8', '1', '537', 'تحويل منتجات من المخزن', 'storemovementController.php', '55.00', '47', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('20', '8', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 20, 0, 0
                    , 175.00, 8, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('20', '8', '8', '0', '537', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '40', '13', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '40';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 40, 0, 0
                    , 155.00, -13, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*155.00," WHERE transferproductid = 538;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('40', '1', '13', '1', '538', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('40', '8', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 40, 0, 0
                    , 155.00, 13, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('40', '8', '13', '0', '538', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '42', '1', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '42';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 42, 0, 0
                    , 155.00, -1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*155.00," WHERE transferproductid = 539;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('42', '1', '1', '1', '539', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('42', '8', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 42, 0, 0
                    , 155.00, 1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('42', '8', '1', '0', '539', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '21', '27', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '21';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 21, 0, 0
                    , 185.00, -27, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*185.00," WHERE transferproductid = 540;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('21', '1', '27', '1', '540', 'تحويل منتجات من المخزن', 'storemovementController.php', '132.00', '105', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('21', '8', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 21, 0, 0
                    , 185.00, 27, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('21', '8', '27', '0', '540', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '43', '17', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '43';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 43, 0, 0
                    , 155.00, -17, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*155.00," WHERE transferproductid = 541;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('43', '1', '17', '1', '541', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('43', '8', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 43, 0, 0
                    , 155.00, 17, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('43', '8', '17', '0', '541', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '44', '14', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '44';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 44, 0, 0
                    , 170.00, -14, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*170.00," WHERE transferproductid = 542;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('44', '1', '14', '1', '542', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '4', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('44', '8', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 44, 0, 0
                    , 170.00, 14, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('44', '8', '14', '0', '542', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '22', '1', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '44', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '22';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 22, 0, 0
                    , 175.00, -1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*175.00," WHERE transferproductid = 543;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('22', '1', '1', '1', '543', 'تحويل منتجات من المخزن', 'storemovementController.php', '45.00', '44', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('22', '8', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 22, 0, 0
                    , 175.00, 1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('22', '8', '1', '0', '543', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '46', '12', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '46';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 46, 0, 0
                    , 155.00, -12, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*155.00," WHERE transferproductid = 544;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('46', '1', '12', '1', '544', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '8', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('46', '8', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 46, 0, 0
                    , 155.00, 12, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('46', '8', '12', '0', '544', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '23', '15', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '74', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '23';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 23, 0, 0
                    , 185.00, -15, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*185.00," WHERE transferproductid = 545;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('23', '1', '15', '1', '545', 'تحويل منتجات من المخزن', 'storemovementController.php', '89.00', '74', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('23', '8', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 23, 0, 0
                    , 185.00, 15, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('23', '8', '15', '0', '545', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '24', '12', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '49', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '24';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 24, 0, 0
                    , 170.00, -12, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*170.00," WHERE transferproductid = 546;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('24', '1', '12', '1', '546', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '49', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('24', '8', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 24, 0, 0
                    , 170.00, 12, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('24', '8', '12', '0', '546', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '3', '5', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '83', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '3';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 3, 0, 0
                    , 155.00, -5, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*155.00," WHERE transferproductid = 547;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('3', '1', '5', '1', '547', 'تحويل منتجات من المخزن', 'storemovementController.php', '88.00', '83', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('3', '8', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 3, 0, 0
                    , 155.00, 5, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('3', '8', '5', '0', '547', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '47', '3', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '47';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 47, 0, 0
                    , 155.00, -3, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*155.00," WHERE transferproductid = 548;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('47', '1', '3', '1', '548', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('47', '8', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 47, 0, 0
                    , 155.00, 3, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('47', '8', '3', '0', '548', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '48', '2', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '48';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 48, 0, 0
                    , 155.00, -2, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*155.00," WHERE transferproductid = 549;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('48', '1', '2', '1', '549', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('48', '8', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 48, 0, 0
                    , 155.00, 2, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('48', '8', '2', '0', '549', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '49', '12', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '49';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 49, 0, 0
                    , 125.00, -12, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*125.00," WHERE transferproductid = 550;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('49', '1', '12', '1', '550', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('49', '8', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 49, 0, 0
                    , 125.00, 12, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('49', '8', '12', '0', '550', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '50', '20', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '50';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 50, 0, 0
                    , 125.00, -20, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*125.00," WHERE transferproductid = 551;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('50', '1', '20', '1', '551', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('50', '8', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 50, 0, 0
                    , 125.00, 20, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('50', '8', '20', '0', '551', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '51', '1', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '51';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 51, 0, 0
                    , 125.00, -1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*125.00," WHERE transferproductid = 552;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('51', '1', '1', '1', '552', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('51', '8', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 51, 0, 0
                    , 125.00, 1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('51', '8', '1', '0', '552', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '52', '3', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '52';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 52, 0, 0
                    , 125.00, -3, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*125.00," WHERE transferproductid = 553;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('52', '1', '3', '1', '553', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('52', '8', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 52, 0, 0
                    , 125.00, 3, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('52', '8', '3', '0', '553', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '53', '17', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '53';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 53, 0, 0
                    , 125.00, -17, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*125.00," WHERE transferproductid = 554;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('53', '1', '17', '1', '554', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('53', '8', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 53, 0, 0
                    , 125.00, 17, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('53', '8', '17', '0', '554', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '54', '1', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '54';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 54, 0, 0
                    , 125.00, -1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*125.00," WHERE transferproductid = 555;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('54', '1', '1', '1', '555', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('54', '8', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 54, 0, 0
                    , 125.00, 1, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('54', '8', '1', '0', '555', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '55', '13', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '55';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 55, 0, 0
                    , 125.00, -13, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*125.00," WHERE transferproductid = 556;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('55', '1', '13', '1', '556', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('55', '8', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 55, 0, 0
                    , 125.00, 13, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('55', '8', '13', '0', '556', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '56', '7', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '56';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 56, 0, 0
                    , 155.00, -7, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*155.00," WHERE transferproductid = 557;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('56', '1', '7', '1', '557', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('56', '8', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 56, 0, 0
                    , 155.00, 7, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('56', '8', '7', '0', '557', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '57', '17', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '57';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 57, 0, 0
                    , 125.00, -17, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*125.00," WHERE transferproductid = 558;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('57', '1', '17', '1', '558', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('57', '8', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 57, 0, 0
                    , 125.00, 17, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('57', '8', '17', '0', '558', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '58', '7', '2021-11-08', '1', '0','14',null,null,'2021-11-08 17:47:49',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '58';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 58, 0, 0
                    , 155.00, -7, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*155.00," WHERE transferproductid = 559;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('58', '1', '7', '1', '559', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('58', '8', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 58, 0, 0
                    , 155.00, 7, 0, 0, 1, '2021-11-08 17:47:49')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 17:47:49' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('58', '8', '7', '0', '559', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:17:49";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:47:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:47:49', '1', 'sucess', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:17:51";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:47:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:47:51', '1', 'show', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:23:00";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:53:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:53:00', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:23:38";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:53:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-08 17:53:38', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:24:00";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:54:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-08 17:54:00', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:25:44";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 17:55:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 17:55:45', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:36:26";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 18:06:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 18:06:26', '1', 'add', '102.45.243.181', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(15,1,8,59,13,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 18:06:26',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '59';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 59, 0, 0
                    , 155.00, -13, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*155.00," WHERE transferproductid = 560;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('59', '1', '13', '1', '560', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('59', '8', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 59, 0, 0
                    , 155.00, 13, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('59', '8', '13', '0', '560', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '60', '10', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '60';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 60, 0, 0
                    , 155.00, -10, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*155.00," WHERE transferproductid = 561;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('60', '1', '10', '1', '561', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('60', '8', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 60, 0, 0
                    , 155.00, 10, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('60', '8', '10', '0', '561', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '61', '7', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '61';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 61, 0, 0
                    , 155.00, -7, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*155.00," WHERE transferproductid = 562;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('61', '1', '7', '1', '562', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('61', '8', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 61, 0, 0
                    , 155.00, 7, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('61', '8', '7', '0', '562', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '62', '14', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '62';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 62, 0, 0
                    , 155.00, -14, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*155.00," WHERE transferproductid = 563;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('62', '1', '14', '1', '563', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('62', '8', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 62, 0, 0
                    , 155.00, 14, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('62', '8', '14', '0', '563', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '63', '12', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '63';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 63, 0, 0
                    , 155.00, -12, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*155.00," WHERE transferproductid = 564;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('63', '1', '12', '1', '564', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('63', '8', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 63, 0, 0
                    , 155.00, 12, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('63', '8', '12', '0', '564', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '64', '14', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '64';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 64, 0, 0
                    , 125.00, -14, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*125.00," WHERE transferproductid = 565;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('64', '1', '14', '1', '565', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('64', '8', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 64, 0, 0
                    , 125.00, 14, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('64', '8', '14', '0', '565', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '65', '8', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '65';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 65, 0, 0
                    , 155.00, -8, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*155.00," WHERE transferproductid = 566;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('65', '1', '8', '1', '566', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('65', '8', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 65, 0, 0
                    , 155.00, 8, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('65', '8', '8', '0', '566', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '66', '10', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '66';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 66, 0, 0
                    , 175.00, -10, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*175.00," WHERE transferproductid = 567;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('66', '1', '10', '1', '567', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('66', '8', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 66, 0, 0
                    , 175.00, 10, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('66', '8', '10', '0', '567', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '67', '10', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '67';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 67, 0, 0
                    , 155.00, -10, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*155.00," WHERE transferproductid = 568;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('67', '1', '10', '1', '568', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('67', '8', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 67, 0, 0
                    , 155.00, 10, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('67', '8', '10', '0', '568', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '68', '7', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '68';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 68, 0, 0
                    , 155.00, -7, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*155.00," WHERE transferproductid = 569;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('68', '1', '7', '1', '569', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('68', '8', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 68, 0, 0
                    , 155.00, 7, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('68', '8', '7', '0', '569', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '69', '9', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '69';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 69, 0, 0
                    , 155.00, -9, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*155.00," WHERE transferproductid = 570;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('69', '1', '9', '1', '570', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('69', '8', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 69, 0, 0
                    , 155.00, 9, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('69', '8', '9', '0', '570', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '70', '13', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '70';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 70, 0, 0
                    , 155.00, -13, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*155.00," WHERE transferproductid = 571;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('70', '1', '13', '1', '571', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('70', '8', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 70, 0, 0
                    , 155.00, 13, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('70', '8', '13', '0', '571', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '71', '11', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '71';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 71, 0, 0
                    , 155.00, -11, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*155.00," WHERE transferproductid = 572;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('71', '1', '11', '1', '572', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('71', '8', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 71, 0, 0
                    , 155.00, 11, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('71', '8', '11', '0', '572', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '72', '11', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '72';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 72, 0, 0
                    , 155.00, -11, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*155.00," WHERE transferproductid = 573;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('72', '1', '11', '1', '573', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('72', '8', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 72, 0, 0
                    , 155.00, 11, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('72', '8', '11', '0', '573', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '28', '1', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '28';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 28, 0, 0
                    , 155.00, -1, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*155.00," WHERE transferproductid = 574;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('28', '1', '1', '1', '574', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('28', '8', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 28, 0, 0
                    , 155.00, 1, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('28', '8', '1', '0', '574', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '73', '16', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '73';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 73, 0, 0
                    , 165.00, -16, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*165.00," WHERE transferproductid = 575;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('73', '1', '16', '1', '575', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '20', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('73', '8', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 73, 0, 0
                    , 165.00, 16, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('73', '8', '16', '0', '575', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '74', '23', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '74';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 74, 0, 0
                    , 165.00, -23, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*165.00," WHERE transferproductid = 576;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('74', '1', '23', '1', '576', 'تحويل منتجات من المخزن', 'storemovementController.php', '50.00', '27', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('74', '8', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 74, 0, 0
                    , 165.00, 23, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('74', '8', '23', '0', '576', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '75', '15', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '75';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 75, 0, 0
                    , 175.00, -15, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*175.00," WHERE transferproductid = 577;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('75', '1', '15', '1', '577', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '9', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('75', '8', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 75, 0, 0
                    , 175.00, 15, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('75', '8', '15', '0', '577', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '5', '1', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '5';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 5, 0, 0
                    , 155.00, -1, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*155.00," WHERE transferproductid = 578;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('5', '1', '1', '1', '578', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('5', '8', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 5, 0, 0
                    , 155.00, 1, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('5', '8', '1', '0', '578', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '77', '23', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '77';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 77, 0, 0
                    , 200.00, -23, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*200.00," WHERE transferproductid = 579;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('77', '1', '23', '1', '579', 'تحويل منتجات من المخزن', 'storemovementController.php', '31.00', '8', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('77', '8', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 77, 0, 0
                    , 200.00, 23, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('77', '8', '23', '0', '579', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '79', '8', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '79';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 79, 0, 0
                    , 200.00, -8, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*200.00," WHERE transferproductid = 580;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('79', '1', '8', '1', '580', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '12', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('79', '8', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 79, 0, 0
                    , 200.00, 8, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('79', '8', '8', '0', '580', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '80', '9', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '47', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '80';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 80, 0, 0
                    , 200.00, -9, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*200.00," WHERE transferproductid = 581;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('80', '1', '9', '1', '581', 'تحويل منتجات من المخزن', 'storemovementController.php', '56.00', '47', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('80', '8', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 80, 0, 0
                    , 200.00, 9, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('80', '8', '9', '0', '581', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '81', '14', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '81';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 81, 0, 0
                    , 200.00, -14, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*200.00," WHERE transferproductid = 582;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('81', '1', '14', '1', '582', 'تحويل منتجات من المخزن', 'storemovementController.php', '29.00', '15', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('81', '8', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 81, 0, 0
                    , 200.00, 14, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('81', '8', '14', '0', '582', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '82', '14', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '82';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 82, 0, 0
                    , 200.00, -14, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*200.00," WHERE transferproductid = 583;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('82', '1', '14', '1', '583', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('82', '8', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 82, 0, 0
                    , 200.00, 14, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('82', '8', '14', '0', '583', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '83', '6', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '47', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '83';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 83, 0, 0
                    , 200.00, -6, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*200.00," WHERE transferproductid = 584;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('83', '1', '6', '1', '584', 'تحويل منتجات من المخزن', 'storemovementController.php', '53.00', '47', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('83', '8', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 83, 0, 0
                    , 200.00, 6, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('83', '8', '6', '0', '584', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '84', '11', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '84';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 84, 0, 0
                    , 200.00, -11, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*200.00," WHERE transferproductid = 585;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('84', '1', '11', '1', '585', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('84', '8', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 84, 0, 0
                    , 200.00, 11, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('84', '8', '11', '0', '585', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '85', '9', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '85';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 85, 0, 0
                    , 205.00, -9, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*205.00," WHERE transferproductid = 586;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('85', '1', '9', '1', '586', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('85', '8', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 85, 0, 0
                    , 205.00, 9, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('85', '8', '9', '0', '586', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '86', '8', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '86';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 86, 0, 0
                    , 200.00, -8, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*200.00," WHERE transferproductid = 587;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('86', '1', '8', '1', '587', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '24', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('86', '8', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 86, 0, 0
                    , 200.00, 8, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('86', '8', '8', '0', '587', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '87', '10', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '87';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 87, 0, 0
                    , 200.00, -10, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*200.00," WHERE transferproductid = 588;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('87', '1', '10', '1', '588', 'تحويل منتجات من المخزن', 'storemovementController.php', '46.00', '36', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('87', '8', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 87, 0, 0
                    , 200.00, 10, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('87', '8', '10', '0', '588', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '88', '9', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '88';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 88, 0, 0
                    , 200.00, -9, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*200.00," WHERE transferproductid = 589;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('88', '1', '9', '1', '589', 'تحويل منتجات من المخزن', 'storemovementController.php', '54.00', '45', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('88', '8', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 88, 0, 0
                    , 200.00, 9, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('88', '8', '9', '0', '589', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '89', '21', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '80', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '89';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 89, 0, 0
                    , 200.00, -21, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*200.00," WHERE transferproductid = 590;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('89', '1', '21', '1', '590', 'تحويل منتجات من المخزن', 'storemovementController.php', '101.00', '80', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('89', '8', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 89, 0, 0
                    , 200.00, 21, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('89', '8', '21', '0', '590', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '6', '47', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '123', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '6';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 6, 0, 0
                    , 145.00, -47, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-47, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "47*2021-11-08*145.00," WHERE transferproductid = 591;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '1', '47', '1', '591', 'تحويل منتجات من المخزن', 'storemovementController.php', '170.00', '123', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('6', '8', '47', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 6, 0, 0
                    , 145.00, 47, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+47, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '8', '47', '0', '591', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '47', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '91', '35', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '91';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 91, 0, 0
                    , 145.00, -35, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2021-11-08*145.00," WHERE transferproductid = 592;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('91', '1', '35', '1', '592', 'تحويل منتجات من المخزن', 'storemovementController.php', '35.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('91', '8', '35', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 91, 0, 0
                    , 145.00, 35, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('91', '8', '35', '0', '592', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '92', '5', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '92';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 92, 0, 0
                    , 145.00, -5, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*145.00," WHERE transferproductid = 593;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('92', '1', '5', '1', '593', 'تحويل منتجات من المخزن', 'storemovementController.php', '-4.00', '-9', '1', '2021-11-08','0','0');
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '1065';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 92, 0, 0
                    , 145.00, 5, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('92', '8', '5', '0', '593', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '9.00', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '93', '27', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '93';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 93, 0, 0
                    , 145.00, -27, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*145.00," WHERE transferproductid = 594;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('93', '1', '27', '1', '594', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('93', '8', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 93, 0, 0
                    , 145.00, 27, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('93', '8', '27', '0', '594', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '94', '18', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '94';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 94, 0, 0
                    , 145.00, -18, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*145.00," WHERE transferproductid = 595;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('94', '1', '18', '1', '595', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('94', '8', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 94, 0, 0
                    , 145.00, 18, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('94', '8', '18', '0', '595', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '95', '12', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '95';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 95, 0, 0
                    , 145.00, -12, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*145.00," WHERE transferproductid = 596;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('95', '1', '12', '1', '596', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('95', '8', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 95, 0, 0
                    , 145.00, 12, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('95', '8', '12', '0', '596', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '96', '39', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '96';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 96, 0, 0
                    , 145.00, -39, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2021-11-08*145.00," WHERE transferproductid = 597;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('96', '1', '39', '1', '597', 'تحويل منتجات من المخزن', 'storemovementController.php', '39.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('96', '8', '39', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 96, 0, 0
                    , 145.00, 39, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('96', '8', '39', '0', '597', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '97', '16', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '97';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 97, 0, 0
                    , 155.00, -16, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*155.00," WHERE transferproductid = 598;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('97', '1', '16', '1', '598', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('97', '8', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 97, 0, 0
                    , 155.00, 16, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('97', '8', '16', '0', '598', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '98', '18', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '98';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 98, 0, 0
                    , 145.00, -18, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*145.00," WHERE transferproductid = 599;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('98', '1', '18', '1', '599', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('98', '8', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 98, 0, 0
                    , 145.00, 18, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('98', '8', '18', '0', '599', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '99', '8', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '99';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 99, 0, 0
                    , 155.00, -8, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*155.00," WHERE transferproductid = 600;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('99', '1', '8', '1', '600', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('99', '8', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 99, 0, 0
                    , 155.00, 8, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('99', '8', '8', '0', '600', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '100', '11', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '100';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 100, 0, 0
                    , 155.00, -11, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*155.00," WHERE transferproductid = 601;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('100', '1', '11', '1', '601', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('100', '8', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 100, 0, 0
                    , 155.00, 11, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('100', '8', '11', '0', '601', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '102', '19', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '102';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 102, 0, 0
                    , 155.00, -19, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*155.00," WHERE transferproductid = 602;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('102', '1', '19', '1', '602', 'تحويل منتجات من المخزن', 'storemovementController.php', '42.00', '23', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('102', '8', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 102, 0, 0
                    , 155.00, 19, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('102', '8', '19', '0', '602', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '105', '37', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '105';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 105, 0, 0
                    , 155.00, -37, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "37*2021-11-08*155.00," WHERE transferproductid = 603;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('105', '1', '37', '1', '603', 'تحويل منتجات من المخزن', 'storemovementController.php', '37.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('105', '8', '37', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 105, 0, 0
                    , 155.00, 37, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('105', '8', '37', '0', '603', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '37', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '107', '19', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '107';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 107, 0, 0
                    , 155.00, -19, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*155.00," WHERE transferproductid = 604;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('107', '1', '19', '1', '604', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('107', '8', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 107, 0, 0
                    , 155.00, 19, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('107', '8', '19', '0', '604', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '109', '24', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '109';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 109, 0, 0
                    , 185.00, -24, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*185.00," WHERE transferproductid = 605;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('109', '1', '24', '1', '605', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('109', '8', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 109, 0, 0
                    , 185.00, 24, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('109', '8', '24', '0', '605', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '110', '1', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '110';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 110, 0, 0
                    , 155.00, -1, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*155.00," WHERE transferproductid = 606;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('110', '1', '1', '1', '606', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('110', '8', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 110, 0, 0
                    , 155.00, 1, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('110', '8', '1', '0', '606', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '111', '18', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:26',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '111';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 111, 0, 0
                    , 155.00, -18, 0, 0, 1, '2021-11-08 18:06:26')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:26' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*155.00," WHERE transferproductid = 607;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('111', '1', '18', '1', '607', 'تحويل منتجات من المخزن', 'storemovementController.php', '41.00', '23', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('111', '8', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 111, 0, 0
                    , 155.00, 18, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('111', '8', '18', '0', '607', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '112', '26', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:27',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '112';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 112, 0, 0
                    , 155.00, -26, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*155.00," WHERE transferproductid = 608;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('112', '1', '26', '1', '608', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '6', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('112', '8', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 112, 0, 0
                    , 155.00, 26, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('112', '8', '26', '0', '608', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '113', '7', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:27',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '113';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 113, 0, 0
                    , 175.00, -7, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*175.00," WHERE transferproductid = 609;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('113', '1', '7', '1', '609', 'تحويل منتجات من المخزن', 'storemovementController.php', '37.00', '30', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('113', '8', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 113, 0, 0
                    , 175.00, 7, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('113', '8', '7', '0', '609', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '114', '16', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:27',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '114';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 114, 0, 0
                    , 175.00, -16, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*175.00," WHERE transferproductid = 610;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('114', '1', '16', '1', '610', 'تحويل منتجات من المخزن', 'storemovementController.php', '38.00', '22', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('114', '8', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 114, 0, 0
                    , 175.00, 16, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('114', '8', '16', '0', '610', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '115', '10', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:27',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '115';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 115, 0, 0
                    , 160.00, -10, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*160.00," WHERE transferproductid = 611;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('115', '1', '10', '1', '611', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('115', '8', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 115, 0, 0
                    , 160.00, 10, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('115', '8', '10', '0', '611', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '116', '10', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:27',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '116';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 116, 0, 0
                    , 175.00, -10, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*175.00," WHERE transferproductid = 612;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('116', '1', '10', '1', '612', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('116', '8', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 116, 0, 0
                    , 175.00, 10, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('116', '8', '10', '0', '612', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '117', '11', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:27',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '117';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 117, 0, 0
                    , 175.00, -11, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*175.00," WHERE transferproductid = 613;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('117', '1', '11', '1', '613', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('117', '8', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 117, 0, 0
                    , 175.00, 11, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('117', '8', '11', '0', '613', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '118', '13', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:27',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '118';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 118, 0, 0
                    , 175.00, -13, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*175.00," WHERE transferproductid = 614;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('118', '1', '13', '1', '614', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('118', '8', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 118, 0, 0
                    , 175.00, 13, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('118', '8', '13', '0', '614', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '119', '12', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:27',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '119';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 119, 0, 0
                    , 175.00, -12, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*175.00," WHERE transferproductid = 615;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('119', '1', '12', '1', '615', 'تحويل منتجات من المخزن', 'storemovementController.php', '51.00', '39', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('119', '8', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 119, 0, 0
                    , 175.00, 12, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('119', '8', '12', '0', '615', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '120', '13', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:27',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '120';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 120, 0, 0
                    , 175.00, -13, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*175.00," WHERE transferproductid = 616;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('120', '1', '13', '1', '616', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('120', '8', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 120, 0, 0
                    , 175.00, 13, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('120', '8', '13', '0', '616', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '121', '4', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:27',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '121';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 121, 0, 0
                    , 175.00, -4, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*175.00," WHERE transferproductid = 617;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('121', '1', '4', '1', '617', 'تحويل منتجات من المخزن', 'storemovementController.php', '40.00', '36', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('121', '8', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 121, 0, 0
                    , 175.00, 4, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('121', '8', '4', '0', '617', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '7', '13', '2021-11-08', '1', '0','15',null,null,'2021-11-08 18:06:27',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '7';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 7, 0, 0
                    , 145.00, -13, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*145.00," WHERE transferproductid = 618;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('7', '1', '13', '1', '618', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '48', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('7', '8', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 7, 0, 0
                    , 145.00, 13, 0, 0, 1, '2021-11-08 18:06:27')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:06:27' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('7', '8', '13', '0', '618', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:36:27";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 18:06:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 18:06:27', '1', 'sucess', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:36:29";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 18:06:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 18:06:29', '1', 'show', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:36:36";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 18:06:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 18:06:36', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:45:46";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 18:15:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 18:15:46', '1', 'add', '102.45.243.181', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(16,1,8,123,15,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 18:15:46',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '123';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 123, 0, 0
                    , 200.00, -15, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*200.00," WHERE transferproductid = 619;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('123', '1', '15', '1', '619', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('123', '8', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 123, 0, 0
                    , 200.00, 15, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('123', '8', '15', '0', '619', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '8', '34', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '8';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 8, 0, 0
                    , 140.00, -34, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2021-11-08*140.00," WHERE transferproductid = 620;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('8', '1', '34', '1', '620', 'تحويل منتجات من المخزن', 'storemovementController.php', '35.00', '1', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('8', '8', '34', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 8, 0, 0
                    , 140.00, 34, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('8', '8', '34', '0', '620', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '9', '19', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '9';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 9, 0, 0
                    , 170.00, -19, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*170.00," WHERE transferproductid = 621;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('9', '1', '19', '1', '621', 'تحويل منتجات من المخزن', 'storemovementController.php', '58.00', '39', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('9', '8', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 9, 0, 0
                    , 170.00, 19, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('9', '8', '19', '0', '621', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '208', '80', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '208';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 208, 0, 0
                    , 195.00, -80, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-80, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "80*2021-11-08*195.00," WHERE transferproductid = 622;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('208', '1', '80', '1', '622', 'تحويل منتجات من المخزن', 'storemovementController.php', '80.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('208', '8', '80', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 208, 0, 0
                    , 195.00, 80, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+80, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('208', '8', '80', '0', '622', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '80', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '319', '57', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '319';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 319, 0, 0
                    , 140.00, -57, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-57, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "57*2021-11-08*140.00," WHERE transferproductid = 623;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('319', '1', '57', '1', '623', 'تحويل منتجات من المخزن', 'storemovementController.php', '57.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('319', '8', '57', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 319, 0, 0
                    , 140.00, 57, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('319', '8', '57', '0', '623', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '57', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '321', '31', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '321';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 321, 0, 0
                    , 90.00, -31, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 90.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2021-11-08*90.00," WHERE transferproductid = 624;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('321', '1', '31', '1', '624', 'تحويل منتجات من المخزن', 'storemovementController.php', '31.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('321', '8', '31', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 321, 0, 0
                    , 90.00, 31, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('321', '8', '31', '0', '624', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '323', '28', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '323';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 323, 0, 0
                    , 150.00, -28, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2021-11-08*150.00," WHERE transferproductid = 625;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('323', '1', '28', '1', '625', 'تحويل منتجات من المخزن', 'storemovementController.php', '28.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('323', '8', '28', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 323, 0, 0
                    , 150.00, 28, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('323', '8', '28', '0', '625', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '381', '15', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '381';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 381, 0, 0
                    , 100.00, -15, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*100.00," WHERE transferproductid = 626;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('381', '1', '15', '1', '626', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('381', '8', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 381, 0, 0
                    , 100.00, 15, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('381', '8', '15', '0', '626', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '382', '21', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '382';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 382, 0, 0
                    , 190.00, -21, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*190.00," WHERE transferproductid = 627;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '1', '21', '1', '627', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '40', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('382', '8', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 382, 0, 0
                    , 190.00, 21, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '8', '21', '0', '627', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '383', '13', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '383';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 383, 0, 0
                    , 185.00, -13, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*185.00," WHERE transferproductid = 628;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '1', '13', '1', '628', 'تحويل منتجات من المخزن', 'storemovementController.php', '29.00', '16', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('383', '8', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 383, 0, 0
                    , 185.00, 13, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '8', '13', '0', '628', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '384', '4', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '384';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 384, 0, 0
                    , 185.00, -4, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*185.00," WHERE transferproductid = 629;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '1', '4', '1', '629', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '2', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('384', '8', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 384, 0, 0
                    , 185.00, 4, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '8', '4', '0', '629', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '385', '16', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '385';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 385, 0, 0
                    , 185.00, -16, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*185.00," WHERE transferproductid = 630;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '1', '16', '1', '630', 'تحويل منتجات من المخزن', 'storemovementController.php', '34.00', '18', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('385', '8', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 385, 0, 0
                    , 185.00, 16, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '8', '16', '0', '630', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '386', '14', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '386';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 386, 0, 0
                    , 185.00, -14, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*185.00," WHERE transferproductid = 631;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('386', '1', '14', '1', '631', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '4', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('386', '8', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 386, 0, 0
                    , 185.00, 14, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('386', '8', '14', '0', '631', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '388', '16', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '388';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 388, 0, 0
                    , 280.00, -16, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*280.00," WHERE transferproductid = 632;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('388', '1', '16', '1', '632', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('388', '8', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 388, 0, 0
                    , 280.00, 16, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('388', '8', '16', '0', '632', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '396', '24', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '396';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 396, 0, 0
                    , 175.00, -24, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*175.00," WHERE transferproductid = 633;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('396', '1', '24', '1', '633', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('396', '8', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 396, 0, 0
                    , 175.00, 24, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('396', '8', '24', '0', '633', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '399', '8', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '399';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 399, 0, 0
                    , 175.00, -8, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*175.00," WHERE transferproductid = 634;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('399', '1', '8', '1', '634', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '40', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('399', '8', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 399, 0, 0
                    , 175.00, 8, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('399', '8', '8', '0', '634', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '405', '6', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '405';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 405, 0, 0
                    , 140.00, -6, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*140.00," WHERE transferproductid = 635;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('405', '1', '6', '1', '635', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('405', '8', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 405, 0, 0
                    , 140.00, 6, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('405', '8', '6', '0', '635', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '408', '24', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '408';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 408, 0, 0
                    , 125.00, -24, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*125.00," WHERE transferproductid = 636;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('408', '1', '24', '1', '636', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('408', '8', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 408, 0, 0
                    , 125.00, 24, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('408', '8', '24', '0', '636', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '410', '39', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '410';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 410, 0, 0
                    , 90.00, -39, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 90.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2021-11-08*90.00," WHERE transferproductid = 637;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('410', '1', '39', '1', '637', 'تحويل منتجات من المخزن', 'storemovementController.php', '39.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('410', '8', '39', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 410, 0, 0
                    , 90.00, 39, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('410', '8', '39', '0', '637', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '442', '219', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '426', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '442';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 442, 0, 0
                    , 125.00, -219, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-219, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "219*2021-11-08*125.00," WHERE transferproductid = 638;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('442', '1', '219', '1', '638', 'تحويل منتجات من المخزن', 'storemovementController.php', '645.00', '426', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('442', '8', '219', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 442, 0, 0
                    , 125.00, 219, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+219, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('442', '8', '219', '0', '638', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '219', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '449', '12', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '449';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 449, 0, 0
                    , 90.00, -12, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 90.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*90.00," WHERE transferproductid = 639;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('449', '1', '12', '1', '639', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('449', '8', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 449, 0, 0
                    , 90.00, 12, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('449', '8', '12', '0', '639', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '451', '4', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '451';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 451, 0, 0
                    , 140.00, -4, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*140.00," WHERE transferproductid = 640;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('451', '1', '4', '1', '640', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('451', '8', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 451, 0, 0
                    , 140.00, 4, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('451', '8', '4', '0', '640', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '128', '25', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '128';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 128, 0, 0
                    , 235.00, -25, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2021-11-08*235.00," WHERE transferproductid = 641;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('128', '1', '25', '1', '641', 'تحويل منتجات من المخزن', 'storemovementController.php', '25.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('128', '8', '25', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 128, 0, 0
                    , 235.00, 25, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('128', '8', '25', '0', '641', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '462', '21', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '462';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 462, 0, 0
                    , 190.00, -21, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*190.00," WHERE transferproductid = 642;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('462', '1', '21', '1', '642', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('462', '8', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 462, 0, 0
                    , 190.00, 21, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('462', '8', '21', '0', '642', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '463', '19', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '463';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 463, 0, 0
                    , 190.00, -19, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*190.00," WHERE transferproductid = 643;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('463', '1', '19', '1', '643', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('463', '8', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 463, 0, 0
                    , 190.00, 19, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('463', '8', '19', '0', '643', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '464', '20', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '464';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 464, 0, 0
                    , 200.00, -20, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*200.00," WHERE transferproductid = 644;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('464', '1', '20', '1', '644', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('464', '8', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 464, 0, 0
                    , 200.00, 20, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('464', '8', '20', '0', '644', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '465', '22', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '465';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 465, 0, 0
                    , 210.00, -22, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*210.00," WHERE transferproductid = 645;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('465', '1', '22', '1', '645', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('465', '8', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 465, 0, 0
                    , 210.00, 22, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('465', '8', '22', '0', '645', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '466', '18', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '466';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 466, 0, 0
                    , 240.00, -18, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*240.00," WHERE transferproductid = 646;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('466', '1', '18', '1', '646', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('466', '8', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 466, 0, 0
                    , 240.00, 18, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('466', '8', '18', '0', '646', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '159', '17', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '159';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 159, 0, 0
                    , 165.00, -17, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*165.00," WHERE transferproductid = 647;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('159', '1', '17', '1', '647', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '5', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('159', '8', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 159, 0, 0
                    , 165.00, 17, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('159', '8', '17', '0', '647', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '472', '9', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '472';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 472, 0, 0
                    , 170.00, -9, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*170.00," WHERE transferproductid = 648;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('472', '1', '9', '1', '648', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('472', '8', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 472, 0, 0
                    , 170.00, 9, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('472', '8', '9', '0', '648', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '474', '49', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '474';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 474, 0, 0
                    , 170.00, -49, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-49, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "49*2021-11-08*170.00," WHERE transferproductid = 649;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('474', '1', '49', '1', '649', 'تحويل منتجات من المخزن', 'storemovementController.php', '49.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('474', '8', '49', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 474, 0, 0
                    , 170.00, 49, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+49, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('474', '8', '49', '0', '649', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '49', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '476', '24', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '476';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 476, 0, 0
                    , 100.00, -24, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*100.00," WHERE transferproductid = 650;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('476', '1', '24', '1', '650', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('476', '8', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 476, 0, 0
                    , 100.00, 24, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('476', '8', '24', '0', '650', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '511', '2', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '176', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '511';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 511, 0, 0
                    , 215.00, -2, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*215.00," WHERE transferproductid = 651;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('511', '1', '2', '1', '651', 'تحويل منتجات من المخزن', 'storemovementController.php', '178.00', '176', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('511', '8', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 511, 0, 0
                    , 215.00, 2, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('511', '8', '2', '0', '651', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '512', '26', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '512';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 512, 0, 0
                    , 180.00, -26, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*180.00," WHERE transferproductid = 652;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('512', '1', '26', '1', '652', 'تحويل منتجات من المخزن', 'storemovementController.php', '26.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('512', '8', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 512, 0, 0
                    , 180.00, 26, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('512', '8', '26', '0', '652', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '513', '24', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '31', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '513';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 513, 0, 0
                    , 210.00, -24, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*210.00," WHERE transferproductid = 653;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '1', '24', '1', '653', 'تحويل منتجات من المخزن', 'storemovementController.php', '55.00', '31', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('513', '8', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 513, 0, 0
                    , 210.00, 24, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '8', '24', '0', '653', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '514', '19', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '47', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '514';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 514, 0, 0
                    , 210.00, -19, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*210.00," WHERE transferproductid = 654;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '1', '19', '1', '654', 'تحويل منتجات من المخزن', 'storemovementController.php', '66.00', '47', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('514', '8', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 514, 0, 0
                    , 210.00, 19, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '8', '19', '0', '654', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '515', '30', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '17', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '515';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 515, 0, 0
                    , 220.00, -30, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2021-11-08*220.00," WHERE transferproductid = 655;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '1', '30', '1', '655', 'تحويل منتجات من المخزن', 'storemovementController.php', '47.00', '17', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('515', '8', '30', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 515, 0, 0
                    , 220.00, 30, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '8', '30', '0', '655', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '516', '15', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '516';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 516, 0, 0
                    , 220.00, -15, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*220.00," WHERE transferproductid = 656;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '1', '15', '1', '656', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '33', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('516', '8', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 516, 0, 0
                    , 220.00, 15, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '8', '15', '0', '656', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '517', '22', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '517';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 517, 0, 0
                    , 210.00, -22, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*210.00," WHERE transferproductid = 657;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '1', '22', '1', '657', 'تحويل منتجات من المخزن', 'storemovementController.php', '41.00', '19', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('517', '8', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 517, 0, 0
                    , 210.00, 22, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '8', '22', '0', '657', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '518', '29', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '53', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '518';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 518, 0, 0
                    , 210.00, -29, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2021-11-08*210.00," WHERE transferproductid = 658;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '1', '29', '1', '658', 'تحويل منتجات من المخزن', 'storemovementController.php', '82.00', '53', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('518', '8', '29', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 518, 0, 0
                    , 210.00, 29, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '8', '29', '0', '658', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '520', '6', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '520';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 520, 0, 0
                    , 155.00, -6, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*155.00," WHERE transferproductid = 659;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('520', '1', '6', '1', '659', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('520', '8', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 520, 0, 0
                    , 155.00, 6, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('520', '8', '6', '0', '659', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '217', '20', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '66', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '217';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 217, 0, 0
                    , 100.00, -20, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*100.00," WHERE transferproductid = 660;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('217', '1', '20', '1', '660', 'تحويل منتجات من المخزن', 'storemovementController.php', '86.00', '66', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('217', '8', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 217, 0, 0
                    , 100.00, 20, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('217', '8', '20', '0', '660', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '8', '218', '72', '2021-11-08', '1', '0','16',null,null,'2021-11-08 18:15:46',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '385', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '218';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 218, 0, 0
                    , 100.00, -72, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "72*2021-11-08*100.00," WHERE transferproductid = 661;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('218', '1', '72', '1', '661', 'تحويل منتجات من المخزن', 'storemovementController.php', '457.00', '385', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('218', '8', '72', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 8, 218, 0, 0
                    , 100.00, 72, 0, 0, 1, '2021-11-08 18:15:46')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:15:46' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('218', '8', '72', '0', '661', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '72', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:45:47";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 18:15:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 18:15:47', '1', 'sucess', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:45:49";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 18:15:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 18:15:49', '1', 'show', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:46:07";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 18:16:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 18:16:07', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:59:52";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 18:29:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 18:29:52', '1', 'add', '102.45.243.181', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(17,1,7,1,56,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 18:29:53',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '1';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 1, 0, 0
                    , 150.00, -56, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-56, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "56*2021-11-08*150.00," WHERE transferproductid = 662;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1', '1', '56', '1', '662', 'تحويل منتجات من المخزن', 'storemovementController.php', '96.00', '40', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1', '7', '56', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 1, 0, 0
                    , 150.00, 56, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+56, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1', '7', '56', '0', '662', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '56', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '2', '28', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '2';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 2, 0, 0
                    , 175.00, -28, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2021-11-08*175.00," WHERE transferproductid = 663;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2', '1', '28', '1', '663', 'تحويل منتجات من المخزن', 'storemovementController.php', '53.00', '25', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2', '7', '28', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 2, 0, 0
                    , 175.00, 28, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2', '7', '28', '0', '663', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '3', '40', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '43', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '3';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 3, 0, 0
                    , 155.00, -40, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2021-11-08*155.00," WHERE transferproductid = 664;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('3', '1', '40', '1', '664', 'تحويل منتجات من المخزن', 'storemovementController.php', '83.00', '43', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('3', '7', '40', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 3, 0, 0
                    , 155.00, 40, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('3', '7', '40', '0', '664', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '4', '15', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '4';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 4, 0, 0
                    , 170.00, -15, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*170.00," WHERE transferproductid = 665;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('4', '1', '15', '1', '665', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('4', '7', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 4, 0, 0
                    , 170.00, 15, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('4', '7', '15', '0', '665', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '6', '53', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '70', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '6';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 6, 0, 0
                    , 145.00, -53, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-53, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "53*2021-11-08*145.00," WHERE transferproductid = 666;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '1', '53', '1', '666', 'تحويل منتجات من المخزن', 'storemovementController.php', '123.00', '70', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('6', '7', '53', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 6, 0, 0
                    , 145.00, 53, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+53, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '7', '53', '0', '666', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '53', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '7', '48', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '7';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 7, 0, 0
                    , 145.00, -48, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2021-11-08*145.00," WHERE transferproductid = 667;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('7', '1', '48', '1', '667', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('7', '7', '48', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 7, 0, 0
                    , 145.00, 48, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('7', '7', '48', '0', '667', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '8', '1', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '8';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 8, 0, 0
                    , 140.00, -1, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*140.00," WHERE transferproductid = 668;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('8', '1', '1', '1', '668', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('8', '7', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 8, 0, 0
                    , 140.00, 1, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('8', '7', '1', '0', '668', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '9', '39', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '9';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 9, 0, 0
                    , 170.00, -39, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2021-11-08*170.00," WHERE transferproductid = 669;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('9', '1', '39', '1', '669', 'تحويل منتجات من المخزن', 'storemovementController.php', '39.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('9', '7', '39', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 9, 0, 0
                    , 170.00, 39, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('9', '7', '39', '0', '669', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '10', '50', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '53', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '10';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 10, 0, 0
                    , 155.00, -50, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2021-11-08*155.00," WHERE transferproductid = 670;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('10', '1', '50', '1', '670', 'تحويل منتجات من المخزن', 'storemovementController.php', '103.00', '53', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('10', '7', '50', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 10, 0, 0
                    , 155.00, 50, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('10', '7', '50', '0', '670', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '11', '23', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '11';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 11, 0, 0
                    , 170.00, -23, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*170.00," WHERE transferproductid = 671;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('11', '1', '23', '1', '671', 'تحويل منتجات من المخزن', 'storemovementController.php', '51.00', '28', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('11', '7', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 11, 0, 0
                    , 170.00, 23, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('11', '7', '23', '0', '671', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '12', '36', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '12';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 12, 0, 0
                    , 145.00, -36, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2021-11-08*145.00," WHERE transferproductid = 672;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('12', '1', '36', '1', '672', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('12', '7', '36', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 12, 0, 0
                    , 145.00, 36, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('12', '7', '36', '0', '672', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '14', '42', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '46', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '14';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 14, 0, 0
                    , 150.00, -42, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2021-11-08*150.00," WHERE transferproductid = 673;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('14', '1', '42', '1', '673', 'تحويل منتجات من المخزن', 'storemovementController.php', '88.00', '46', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('14', '7', '42', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 14, 0, 0
                    , 150.00, 42, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('14', '7', '42', '0', '673', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '15', '40', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '15';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 15, 0, 0
                    , 175.00, -40, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2021-11-08*175.00," WHERE transferproductid = 674;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('15', '1', '40', '1', '674', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '21', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('15', '7', '40', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 15, 0, 0
                    , 175.00, 40, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('15', '7', '40', '0', '674', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '16', '26', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '16';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 16, 0, 0
                    , 170.00, -26, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*170.00," WHERE transferproductid = 675;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('16', '1', '26', '1', '675', 'تحويل منتجات من المخزن', 'storemovementController.php', '26.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('16', '7', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 16, 0, 0
                    , 170.00, 26, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('16', '7', '26', '0', '675', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '17', '49', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '87', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '17';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 17, 0, 0
                    , 185.00, -49, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-49, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "49*2021-11-08*185.00," WHERE transferproductid = 676;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('17', '1', '49', '1', '676', 'تحويل منتجات من المخزن', 'storemovementController.php', '136.00', '87', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('17', '7', '49', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 17, 0, 0
                    , 185.00, 49, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+49, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('17', '7', '49', '0', '676', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '49', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '18', '41', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '98', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '18';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 18, 0, 0
                    , 185.00, -41, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "41*2021-11-08*185.00," WHERE transferproductid = 677;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('18', '1', '41', '1', '677', 'تحويل منتجات من المخزن', 'storemovementController.php', '139.00', '98', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('18', '7', '41', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 18, 0, 0
                    , 185.00, 41, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('18', '7', '41', '0', '677', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '41', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '19', '4', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '19';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 19, 0, 0
                    , 170.00, -4, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*170.00," WHERE transferproductid = 678;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('19', '1', '4', '1', '678', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('19', '7', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 19, 0, 0
                    , 170.00, 4, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('19', '7', '4', '0', '678', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '20', '38', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '20';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 20, 0, 0
                    , 175.00, -38, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "38*2021-11-08*175.00," WHERE transferproductid = 679;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('20', '1', '38', '1', '679', 'تحويل منتجات من المخزن', 'storemovementController.php', '47.00', '9', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('20', '7', '38', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 20, 0, 0
                    , 175.00, 38, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('20', '7', '38', '0', '679', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '38', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '21', '43', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '62', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '21';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 21, 0, 0
                    , 185.00, -43, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "43*2021-11-08*185.00," WHERE transferproductid = 680;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('21', '1', '43', '1', '680', 'تحويل منتجات من المخزن', 'storemovementController.php', '105.00', '62', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('21', '7', '43', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 21, 0, 0
                    , 185.00, 43, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('21', '7', '43', '0', '680', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '43', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '22', '45', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '22';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 22, 0, 0
                    , 175.00, -45, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2021-11-08*175.00," WHERE transferproductid = 681;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('22', '1', '45', '1', '681', 'تحويل منتجات من المخزن', 'storemovementController.php', '44.00', '-1', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('22', '7', '45', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 22, 0, 0
                    , 175.00, 45, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('22', '7', '45', '0', '681', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '23', '46', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '23';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 23, 0, 0
                    , 185.00, -46, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "46*2021-11-08*185.00," WHERE transferproductid = 682;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('23', '1', '46', '1', '682', 'تحويل منتجات من المخزن', 'storemovementController.php', '74.00', '28', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('23', '7', '46', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 23, 0, 0
                    , 185.00, 46, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('23', '7', '46', '0', '682', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '46', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '24', '11', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '38', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '24';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 24, 0, 0
                    , 170.00, -11, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*170.00," WHERE transferproductid = 683;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('24', '1', '11', '1', '683', 'تحويل منتجات من المخزن', 'storemovementController.php', '49.00', '38', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('24', '7', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 24, 0, 0
                    , 170.00, 11, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('24', '7', '11', '0', '683', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '25', '12', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '25';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 25, 0, 0
                    , 170.00, -12, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*170.00," WHERE transferproductid = 684;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('25', '1', '12', '1', '684', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('25', '7', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 25, 0, 0
                    , 170.00, 12, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('25', '7', '12', '0', '684', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '26', '24', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '26';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 26, 0, 0
                    , 185.00, -24, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*185.00," WHERE transferproductid = 685;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('26', '1', '24', '1', '685', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('26', '7', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 26, 0, 0
                    , 185.00, 24, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('26', '7', '24', '0', '685', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '27', '57', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '27';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 27, 0, 0
                    , 185.00, -57, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-57, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "57*2021-11-08*185.00," WHERE transferproductid = 686;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('27', '1', '57', '1', '686', 'تحويل منتجات من المخزن', 'storemovementController.php', '57.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('27', '7', '57', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 27, 0, 0
                    , 185.00, 57, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('27', '7', '57', '0', '686', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '57', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '29', '1', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '29';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 29, 0, 0
                    , 185.00, -1, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*185.00," WHERE transferproductid = 687;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('29', '1', '1', '1', '687', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('29', '7', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 29, 0, 0
                    , 185.00, 1, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('29', '7', '1', '0', '687', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '30', '5', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '30';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 30, 0, 0
                    , 170.00, -5, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*170.00," WHERE transferproductid = 688;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('30', '1', '5', '1', '688', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('30', '7', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 30, 0, 0
                    , 170.00, 5, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('30', '7', '5', '0', '688', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '31', '17', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '106', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '31';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 31, 0, 0
                    , 180.00, -17, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*180.00," WHERE transferproductid = 689;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('31', '1', '17', '1', '689', 'تحويل منتجات من المخزن', 'storemovementController.php', '123.00', '106', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('31', '7', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 31, 0, 0
                    , 180.00, 17, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('31', '7', '17', '0', '689', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '32', '3', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '7', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '32';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 32, 0, 0
                    , 170.00, -3, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*170.00," WHERE transferproductid = 690;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('32', '1', '3', '1', '690', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '7', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('32', '7', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 32, 0, 0
                    , 170.00, 3, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('32', '7', '3', '0', '690', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '33', '1', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '33';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 33, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 691;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('33', '1', '1', '1', '691', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('33', '7', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 33, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('33', '7', '1', '0', '691', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '35', '1', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '35';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 35, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 692;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('35', '1', '1', '1', '692', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('35', '7', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 35, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('35', '7', '1', '0', '692', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '34', '1', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '34';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 34, 0, 0
                    , 170.00, -1, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*170.00," WHERE transferproductid = 693;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('34', '1', '1', '1', '693', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('34', '7', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 34, 0, 0
                    , 170.00, 1, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('34', '7', '1', '0', '693', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '73', '20', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '73';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 73, 0, 0
                    , 165.00, -20, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*165.00," WHERE transferproductid = 694;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('73', '1', '20', '1', '694', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('73', '7', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 73, 0, 0
                    , 165.00, 20, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('73', '7', '20', '0', '694', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '74', '27', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '74';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 74, 0, 0
                    , 165.00, -27, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*165.00," WHERE transferproductid = 695;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('74', '1', '27', '1', '695', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('74', '7', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 74, 0, 0
                    , 165.00, 27, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('74', '7', '27', '0', '695', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '75', '9', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '75';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 75, 0, 0
                    , 175.00, -9, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*175.00," WHERE transferproductid = 696;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('75', '1', '9', '1', '696', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('75', '7', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 75, 0, 0
                    , 175.00, 9, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('75', '7', '9', '0', '696', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '76', '19', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '76';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 76, 0, 0
                    , 200.00, -19, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*200.00," WHERE transferproductid = 697;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('76', '1', '19', '1', '697', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '2', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('76', '7', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 76, 0, 0
                    , 200.00, 19, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('76', '7', '19', '0', '697', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '77', '8', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '77';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 77, 0, 0
                    , 200.00, -8, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*200.00," WHERE transferproductid = 698;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('77', '1', '8', '1', '698', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('77', '7', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 77, 0, 0
                    , 200.00, 8, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('77', '7', '8', '0', '698', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '78', '48', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '78';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 78, 0, 0
                    , 200.00, -48, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2021-11-08*200.00," WHERE transferproductid = 699;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('78', '1', '48', '1', '699', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('78', '7', '48', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 78, 0, 0
                    , 200.00, 48, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('78', '7', '48', '0', '699', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '79', '12', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '79';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 79, 0, 0
                    , 200.00, -12, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*200.00," WHERE transferproductid = 700;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('79', '1', '12', '1', '700', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('79', '7', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 79, 0, 0
                    , 200.00, 12, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('79', '7', '12', '0', '700', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '80', '47', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '80';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 80, 0, 0
                    , 200.00, -47, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-47, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "47*2021-11-08*200.00," WHERE transferproductid = 701;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('80', '1', '47', '1', '701', 'تحويل منتجات من المخزن', 'storemovementController.php', '47.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('80', '7', '47', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 80, 0, 0
                    , 200.00, 47, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+47, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('80', '7', '47', '0', '701', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '47', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '81', '15', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '81';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 81, 0, 0
                    , 200.00, -15, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*200.00," WHERE transferproductid = 702;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('81', '1', '15', '1', '702', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('81', '7', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 81, 0, 0
                    , 200.00, 15, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('81', '7', '15', '0', '702', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '83', '47', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '83';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 83, 0, 0
                    , 200.00, -47, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-47, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "47*2021-11-08*200.00," WHERE transferproductid = 703;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('83', '1', '47', '1', '703', 'تحويل منتجات من المخزن', 'storemovementController.php', '47.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('83', '7', '47', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 83, 0, 0
                    , 200.00, 47, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+47, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('83', '7', '47', '0', '703', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '47', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '86', '24', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '86';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 86, 0, 0
                    , 200.00, -24, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2021-11-08*200.00," WHERE transferproductid = 704;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('86', '1', '24', '1', '704', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('86', '7', '24', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 86, 0, 0
                    , 200.00, 24, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('86', '7', '24', '0', '704', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '87', '36', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '87';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 87, 0, 0
                    , 200.00, -36, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2021-11-08*200.00," WHERE transferproductid = 705;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('87', '1', '36', '1', '705', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('87', '7', '36', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 87, 0, 0
                    , 200.00, 36, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('87', '7', '36', '0', '705', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '88', '29', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '88';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 88, 0, 0
                    , 200.00, -29, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2021-11-08*200.00," WHERE transferproductid = 706;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('88', '1', '29', '1', '706', 'تحويل منتجات من المخزن', 'storemovementController.php', '45.00', '16', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('88', '7', '29', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 88, 0, 0
                    , 200.00, 29, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('88', '7', '29', '0', '706', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '89', '80', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '89';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 89, 0, 0
                    , 200.00, -80, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-80, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "80*2021-11-08*200.00," WHERE transferproductid = 707;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('89', '1', '80', '1', '707', 'تحويل منتجات من المخزن', 'storemovementController.php', '80.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('89', '7', '80', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 89, 0, 0
                    , 200.00, 80, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+80, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('89', '7', '80', '0', '707', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '80', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '90', '41', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '38', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '90';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 90, 0, 0
                    , 165.00, -41, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "41*2021-11-08*165.00," WHERE transferproductid = 708;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '1', '41', '1', '708', 'تحويل منتجات من المخزن', 'storemovementController.php', '79.00', '38', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('90', '7', '41', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 90, 0, 0
                    , 165.00, 41, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '7', '41', '0', '708', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '41', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '101', '19', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '101';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 101, 0, 0
                    , 155.00, -19, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*155.00," WHERE transferproductid = 709;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('101', '1', '19', '1', '709', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('101', '7', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 101, 0, 0
                    , 155.00, 19, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('101', '7', '19', '0', '709', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '102', '23', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '102';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 102, 0, 0
                    , 155.00, -23, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*155.00," WHERE transferproductid = 710;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('102', '1', '23', '1', '710', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('102', '7', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 102, 0, 0
                    , 155.00, 23, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('102', '7', '23', '0', '710', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '103', '22', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '103';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 103, 0, 0
                    , 155.00, -22, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*155.00," WHERE transferproductid = 711;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('103', '1', '22', '1', '711', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('103', '7', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 103, 0, 0
                    , 155.00, 22, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('103', '7', '22', '0', '711', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '104', '12', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '104';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 104, 0, 0
                    , 155.00, -12, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*155.00," WHERE transferproductid = 712;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('104', '1', '12', '1', '712', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('104', '7', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 104, 0, 0
                    , 155.00, 12, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('104', '7', '12', '0', '712', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '106', '19', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '106';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 106, 0, 0
                    , 155.00, -19, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*155.00," WHERE transferproductid = 713;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('106', '1', '19', '1', '713', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('106', '7', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 106, 0, 0
                    , 155.00, 19, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('106', '7', '19', '0', '713', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '111', '23', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:53',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '111';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 111, 0, 0
                    , 155.00, -23, 0, 0, 1, '2021-11-08 18:29:53')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:53' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*155.00," WHERE transferproductid = 714;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('111', '1', '23', '1', '714', 'تحويل منتجات من المخزن', 'storemovementController.php', '23.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('111', '7', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 111, 0, 0
                    , 155.00, 23, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('111', '7', '23', '0', '714', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '112', '6', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:54',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '112';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 112, 0, 0
                    , 155.00, -6, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*155.00," WHERE transferproductid = 715;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('112', '1', '6', '1', '715', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('112', '7', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 112, 0, 0
                    , 155.00, 6, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('112', '7', '6', '0', '715', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '113', '30', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:54',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '113';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 113, 0, 0
                    , 175.00, -30, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2021-11-08*175.00," WHERE transferproductid = 716;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('113', '1', '30', '1', '716', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('113', '7', '30', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 113, 0, 0
                    , 175.00, 30, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('113', '7', '30', '0', '716', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '114', '22', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:54',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '114';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 114, 0, 0
                    , 175.00, -22, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*175.00," WHERE transferproductid = 717;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('114', '1', '22', '1', '717', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('114', '7', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 114, 0, 0
                    , 175.00, 22, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('114', '7', '22', '0', '717', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '119', '39', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:54',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '119';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 119, 0, 0
                    , 175.00, -39, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2021-11-08*175.00," WHERE transferproductid = 718;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('119', '1', '39', '1', '718', 'تحويل منتجات من المخزن', 'storemovementController.php', '39.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('119', '7', '39', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 119, 0, 0
                    , 175.00, 39, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('119', '7', '39', '0', '718', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '121', '36', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:54',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '121';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 121, 0, 0
                    , 175.00, -36, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2021-11-08*175.00," WHERE transferproductid = 719;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('121', '1', '36', '1', '719', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('121', '7', '36', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 121, 0, 0
                    , 175.00, 36, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('121', '7', '36', '0', '719', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '122', '9', '2021-11-08', '1', '0','17',null,null,'2021-11-08 18:29:54',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '122';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 122, 0, 0
                    , 200.00, -9, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*200.00," WHERE transferproductid = 720;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('122', '1', '9', '1', '720', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('122', '7', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 122, 0, 0
                    , 200.00, 9, 0, 0, 1, '2021-11-08 18:29:54')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 18:29:54' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('122', '7', '9', '0', '720', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:59:54";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 18:29:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 18:29:54', '1', 'sucess', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 14:59:56";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 18:29:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 18:29:56', '1', 'show', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 15:35:25";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 19:05:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 19:05:25', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 15:42:13";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 19:12:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-08 19:12:19', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 15:47:35";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 19:17:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-08 19:17:35', '1', 'add', '102.45.243.181', '', '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 ('فسكوز جديد','','1','145','155', '185','170', '2021-11-08', '0', '1', '0', '', '0', '0', '0', '0', '0', '145','145','145','145','145','0','6.9','17.24','27.59','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'فسكوز جديد', productDescription = '', productCatId = '1', productBuyPrice = '145', productSellAllPrice = '155', productSellUnitPrice = '185', productSellHalfPrice = '170', productDate = '2021-11-08', conditions = '0', userId = '1', limitamount = '0', parcode = '00553',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '145',lastbuyprice_withDiscount = '145',meanbuyprice = '145',meanbuyprice_withDiscount = '145' , productbuypricereal = '145' , buypricereal_precentage = '0' , buytotal_precentage = '6.9' , buyhalf_precentage = '17.24' , buypart_precentage = '27.59',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '553';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '553', '1', '2021-11-08', '1', '0','0055301','155','170','185','145');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('553', '1', '153', '1', '2021-11-08');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('553', '1', '153', '0', '553', 'إضافة منتج', 'productController.php', '0', '153', '1', '2021-11-08','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (553, 1,'2021-11-08 19:17:36',1)
                ON DUPLICATE KEY UPDATE productid = 553, edited = 1, sysdate = '2021-11-08 19:17:36', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '22185', '22185', '2021-11-08', '1', '0', '0', '2021-11-08 19:17:36','إضافة منتج فسكوز جديد الكمية 153','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('633', '19', '22185', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '5547600', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('633', '7', '22185', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '6380545.8', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'فسكوز جديد', productDescription = '', productCatId = '1', productBuyPrice = '145.00', productSellAllPrice = '155.00', productSellUnitPrice = '185.00', productSellHalfPrice = '170.00', productDate = '2021-11-08', conditions = '0', userId = '1', limitamount = '0', parcode = '00553',type ='0', expireDate = '0' , dailyentryId = '633',isService = '0',isOptic = '0',lastbuyprice = '145',lastbuyprice_withDiscount = '145',meanbuyprice = '145',meanbuyprice_withDiscount = '145' , productbuypricereal = '145' , buypricereal_precentage = '0' , buytotal_precentage = '6.9' , buyhalf_precentage = '17.24' , buypart_precentage = '27.59',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '553';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 15:47:38";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 19:17:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-08 19:17:38', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 15:57:10";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 19:27:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 19:27:11', '1', 'add', '102.45.243.181', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(18,1,7,318,10,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 19:27:11',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '318';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 318, 0, 0
                    , 160.00, -10, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*160.00," WHERE transferproductid = 721;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('318', '1', '10', '1', '721', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('318', '7', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 318, 0, 0
                    , 160.00, 10, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('318', '7', '10', '0', '721', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '311', '105', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '311';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 311, 0, 0
                    , 75.00, -105, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 75.00,
                        buyQuantity =buyQuantity+-105, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "105*2021-11-08*75.00," WHERE transferproductid = 722;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('311', '1', '105', '1', '722', 'تحويل منتجات من المخزن', 'storemovementController.php', '105.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('311', '7', '105', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 311, 0, 0
                    , 75.00, 105, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+105, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('311', '7', '105', '0', '722', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '105', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '313', '15', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '313';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 313, 0, 0
                    , 140.00, -15, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*140.00," WHERE transferproductid = 723;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('313', '1', '15', '1', '723', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('313', '7', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 313, 0, 0
                    , 140.00, 15, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('313', '7', '15', '0', '723', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '303', '10', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-28', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '303';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 303, 0, 0
                    , 165.00, -10, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*165.00," WHERE transferproductid = 724;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('303', '1', '10', '1', '724', 'تحويل منتجات من المخزن', 'storemovementController.php', '-18.00', '-28', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('303', '7', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 303, 0, 0
                    , 165.00, 10, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('303', '7', '10', '0', '724', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '317', '3', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '317';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 317, 0, 0
                    , 160.00, -3, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*160.00," WHERE transferproductid = 725;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('317', '1', '3', '1', '725', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('317', '7', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 317, 0, 0
                    , 160.00, 3, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('317', '7', '3', '0', '725', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '316', '3', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '316';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 316, 0, 0
                    , 160.00, -3, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*160.00," WHERE transferproductid = 726;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('316', '1', '3', '1', '726', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('316', '7', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 316, 0, 0
                    , 160.00, 3, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('316', '7', '3', '0', '726', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '380', '60', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '380';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 380, 0, 0
                    , 155.00, -60, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2021-11-08*155.00," WHERE transferproductid = 727;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('380', '1', '60', '1', '727', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('380', '7', '60', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 380, 0, 0
                    , 155.00, 60, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('380', '7', '60', '0', '727', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '379', '50', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '379';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 379, 0, 0
                    , 125.00, -50, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2021-11-08*125.00," WHERE transferproductid = 728;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('379', '1', '50', '1', '728', 'تحويل منتجات من المخزن', 'storemovementController.php', '50.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('379', '7', '50', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 379, 0, 0
                    , 125.00, 50, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('379', '7', '50', '0', '728', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '208', '20', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '208';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 208, 0, 0
                    , 195.00, -20, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*195.00," WHERE transferproductid = 729;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('208', '1', '20', '1', '729', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-20', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('208', '7', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 208, 0, 0
                    , 195.00, 20, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('208', '7', '20', '0', '729', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '395', '140', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '395';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 395, 0, 0
                    , 175.00, -140, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-140, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "140*2021-11-08*175.00," WHERE transferproductid = 730;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('395', '1', '140', '1', '730', 'تحويل منتجات من المخزن', 'storemovementController.php', '179.00', '39', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('395', '7', '140', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 395, 0, 0
                    , 175.00, 140, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+140, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('395', '7', '140', '0', '730', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '140', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '398', '21', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '398';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 398, 0, 0
                    , 200.00, -21, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*200.00," WHERE transferproductid = 731;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('398', '1', '21', '1', '731', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('398', '7', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 398, 0, 0
                    , 200.00, 21, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('398', '7', '21', '0', '731', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '442', '153', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '273', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '442';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 442, 0, 0
                    , 125.00, -153, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-153, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "153*2021-11-08*125.00," WHERE transferproductid = 732;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('442', '1', '153', '1', '732', 'تحويل منتجات من المخزن', 'storemovementController.php', '426.00', '273', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('442', '7', '153', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 442, 0, 0
                    , 125.00, 153, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+153, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('442', '7', '153', '0', '732', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '153', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '553', '153', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '1271';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 553, 0, 0
                    , 145.00, -153, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-153, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "153*2021-11-08*145.00," WHERE transferproductid = 733;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('553', '1', '153', '1', '733', 'تحويل منتجات من المخزن', 'storemovementController.php', '153.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('553', '7', '153', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 553, 0, 0
                    , 145.00, 153, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+153, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('553', '7', '153', '0', '733', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '153', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '447', '60', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '447';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 447, 0, 0
                    , 165.00, -60, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2021-11-08*165.00," WHERE transferproductid = 734;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('447', '1', '60', '1', '734', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('447', '7', '60', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 447, 0, 0
                    , 165.00, 60, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('447', '7', '60', '0', '734', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '475', '121', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '475';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 475, 0, 0
                    , 175.00, -121, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-121, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "121*2021-11-08*175.00," WHERE transferproductid = 735;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('475', '1', '121', '1', '735', 'تحويل منتجات من المخزن', 'storemovementController.php', '121.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('475', '7', '121', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 475, 0, 0
                    , 175.00, 121, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+121, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('475', '7', '121', '0', '735', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '121', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '524', '27', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '524';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 524, 0, 0
                    , 160.00, -27, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*160.00," WHERE transferproductid = 736;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('524', '1', '27', '1', '736', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('524', '7', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 524, 0, 0
                    , 160.00, 27, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('524', '7', '27', '0', '736', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '522', '10', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '522';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 522, 0, 0
                    , 160.00, -10, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*160.00," WHERE transferproductid = 737;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('522', '1', '10', '1', '737', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('522', '7', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 522, 0, 0
                    , 160.00, 10, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('522', '7', '10', '0', '737', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '523', '9', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '523';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 523, 0, 0
                    , 160.00, -9, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*160.00," WHERE transferproductid = 738;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('523', '1', '9', '1', '738', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('523', '7', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 523, 0, 0
                    , 160.00, 9, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('523', '7', '9', '0', '738', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '436', '9', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '436';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 436, 0, 0
                    , 160.00, -9, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*160.00," WHERE transferproductid = 739;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('436', '1', '9', '1', '739', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('436', '7', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 436, 0, 0
                    , 160.00, 9, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('436', '7', '9', '0', '739', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '382', '13', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '382';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 382, 0, 0
                    , 190.00, -13, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*190.00," WHERE transferproductid = 740;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '1', '13', '1', '740', 'تحويل منتجات من المخزن', 'storemovementController.php', '40.00', '27', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('382', '7', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 382, 0, 0
                    , 190.00, 13, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '7', '13', '0', '740', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '383', '2', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '383';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 383, 0, 0
                    , 185.00, -2, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*185.00," WHERE transferproductid = 741;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '1', '2', '1', '741', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '14', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('383', '7', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 383, 0, 0
                    , 185.00, 2, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '7', '2', '0', '741', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '384', '1', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '384';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 384, 0, 0
                    , 185.00, -1, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*185.00," WHERE transferproductid = 742;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '1', '1', '1', '742', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '1', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('384', '7', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 384, 0, 0
                    , 185.00, 1, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '7', '1', '0', '742', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '385', '13', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '385';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 385, 0, 0
                    , 185.00, -13, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*185.00," WHERE transferproductid = 743;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '1', '13', '1', '743', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '5', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('385', '7', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 385, 0, 0
                    , 185.00, 13, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '7', '13', '0', '743', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '386', '4', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '386';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 386, 0, 0
                    , 185.00, -4, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*185.00," WHERE transferproductid = 744;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('386', '1', '4', '1', '744', 'تحويل منتجات من المخزن', 'storemovementController.php', '4.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('386', '7', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 386, 0, 0
                    , 185.00, 4, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('386', '7', '4', '0', '744', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '387', '5', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '387';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 387, 0, 0
                    , 175.00, -5, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*175.00," WHERE transferproductid = 745;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('387', '1', '5', '1', '745', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '3', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('387', '7', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 387, 0, 0
                    , 175.00, 5, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('387', '7', '5', '0', '745', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '513', '12', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '513';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 513, 0, 0
                    , 210.00, -12, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*210.00," WHERE transferproductid = 746;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '1', '12', '1', '746', 'تحويل منتجات من المخزن', 'storemovementController.php', '31.00', '19', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('513', '7', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 513, 0, 0
                    , 210.00, 12, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '7', '12', '0', '746', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '514', '15', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '514';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 514, 0, 0
                    , 210.00, -15, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*210.00," WHERE transferproductid = 747;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '1', '15', '1', '747', 'تحويل منتجات من المخزن', 'storemovementController.php', '47.00', '32', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('514', '7', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 514, 0, 0
                    , 210.00, 15, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '7', '15', '0', '747', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '515', '2', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '515';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 515, 0, 0
                    , 220.00, -2, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*220.00," WHERE transferproductid = 748;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '1', '2', '1', '748', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '15', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('515', '7', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 515, 0, 0
                    , 220.00, 2, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '7', '2', '0', '748', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '516', '13', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '516';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 516, 0, 0
                    , 220.00, -13, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*220.00," WHERE transferproductid = 749;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '1', '13', '1', '749', 'تحويل منتجات من المخزن', 'storemovementController.php', '33.00', '20', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('516', '7', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 516, 0, 0
                    , 220.00, 13, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '7', '13', '0', '749', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '517', '10', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '517';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 517, 0, 0
                    , 210.00, -10, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*210.00," WHERE transferproductid = 750;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '1', '10', '1', '750', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '9', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('517', '7', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 517, 0, 0
                    , 210.00, 10, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '7', '10', '0', '750', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '518', '21', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '518';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 518, 0, 0
                    , 210.00, -21, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*210.00," WHERE transferproductid = 751;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '1', '21', '1', '751', 'تحويل منتجات من المخزن', 'storemovementController.php', '53.00', '32', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('518', '7', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 518, 0, 0
                    , 210.00, 21, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '7', '21', '0', '751', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '450', '15', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '450';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 450, 0, 0
                    , 280.00, -15, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*280.00," WHERE transferproductid = 752;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('450', '1', '15', '1', '752', 'تحويل منتجات من المخزن', 'storemovementController.php', '37.00', '22', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('450', '7', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 450, 0, 0
                    , 280.00, 15, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('450', '7', '15', '0', '752', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '541', '2', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-2', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '541';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 541, 0, 0
                    , 235.00, -2, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*235.00," WHERE transferproductid = 753;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('541', '1', '2', '1', '753', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-2', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('541', '7', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 541, 0, 0
                    , 235.00, 2, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('541', '7', '2', '0', '753', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '249', '3', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-11', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '249';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 249, 0, 0
                    , 230.00, -3, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 230.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*230.00," WHERE transferproductid = 754;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('249', '1', '3', '1', '754', 'تحويل منتجات من المخزن', 'storemovementController.php', '-8.00', '-11', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('249', '7', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 249, 0, 0
                    , 230.00, 3, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('249', '7', '3', '0', '754', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '124', '39', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '124';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 124, 0, 0
                    , 185.00, -39, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2021-11-08*185.00," WHERE transferproductid = 755;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('124', '1', '39', '1', '755', 'تحويل منتجات من المخزن', 'storemovementController.php', '73.00', '34', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('124', '7', '39', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 124, 0, 0
                    , 185.00, 39, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('124', '7', '39', '0', '755', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '125', '18', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '125';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 125, 0, 0
                    , 185.00, -18, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*185.00," WHERE transferproductid = 756;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('125', '1', '18', '1', '756', 'تحويل منتجات من المخزن', 'storemovementController.php', '37.00', '19', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('125', '7', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 125, 0, 0
                    , 185.00, 18, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('125', '7', '18', '0', '756', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '126', '20', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '56', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '126';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 126, 0, 0
                    , 195.00, -20, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*195.00," WHERE transferproductid = 757;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('126', '1', '20', '1', '757', 'تحويل منتجات من المخزن', 'storemovementController.php', '76.00', '56', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('126', '7', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 126, 0, 0
                    , 195.00, 20, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('126', '7', '20', '0', '757', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '254', '17', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-5', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '254';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 254, 0, 0
                    , 270.00, -17, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*270.00," WHERE transferproductid = 758;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('254', '1', '17', '1', '758', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '-5', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('254', '7', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 254, 0, 0
                    , 270.00, 17, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('254', '7', '17', '0', '758', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '540', '22', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '540';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 540, 0, 0
                    , 235.00, -22, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*235.00," WHERE transferproductid = 759;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('540', '1', '22', '1', '759', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('540', '7', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 540, 0, 0
                    , 235.00, 22, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('540', '7', '22', '0', '759', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '214', '46', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '214';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 214, 0, 0
                    , 205.00, -46, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "46*2021-11-08*205.00," WHERE transferproductid = 760;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('214', '1', '46', '1', '760', 'تحويل منتجات من المخزن', 'storemovementController.php', '46.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('214', '7', '46', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 214, 0, 0
                    , 205.00, 46, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('214', '7', '46', '0', '760', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '46', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '7', '129', '6', '2021-11-08', '1', '0','18',null,null,'2021-11-08 19:27:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '129';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 129, 0, 0
                    , 235.00, -6, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*235.00," WHERE transferproductid = 761;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('129', '1', '6', '1', '761', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('129', '7', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 7, 129, 0, 0
                    , 235.00, 6, 0, 0, 1, '2021-11-08 19:27:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 19:27:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('129', '7', '6', '0', '761', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 15:57:11";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 19:27:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 19:27:12', '1', 'sucess', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 15:57:14";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 19:27:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 19:27:14', '1', 'show', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:11:13";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 19:41:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 19:41:13', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:20:08";
UPDATE user SET loginip = "102.45.243.181", lastactivetime = "2021-11-08 19:50:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-08 19:50:08', '1', '', '102.45.243.181', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:32:40";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:02:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:02:40', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:32:45";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:02:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:02:45', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:33:01";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:03:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:03:01', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:33:13";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:03:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:03:14', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:43:42";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:13:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:13:42', '1', 'add', '102.47.155.132', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(19,1,3,207,21,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 20:13:42',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '207';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 207, 0, 0
                    , 100.00, -21, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*100.00," WHERE transferproductid = 762;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('207', '1', '21', '1', '762', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('207', '3', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 207, 0, 0
                    , 100.00, 21, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('207', '3', '21', '0', '762', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '183', '9', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '183';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 183, 0, 0
                    , 110.00, -9, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 110.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*110.00," WHERE transferproductid = 763;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('183', '1', '9', '1', '763', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('183', '3', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 183, 0, 0
                    , 110.00, 9, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('183', '3', '9', '0', '763', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '206', '7', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '206';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 206, 0, 0
                    , 110.00, -7, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 110.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*110.00," WHERE transferproductid = 764;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('206', '1', '7', '1', '764', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('206', '3', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 206, 0, 0
                    , 110.00, 7, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('206', '3', '7', '0', '764', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '143', '7', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '143';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 143, 0, 0
                    , 110.00, -7, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 110.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*110.00," WHERE transferproductid = 765;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('143', '1', '7', '1', '765', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('143', '3', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 143, 0, 0
                    , 110.00, 7, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('143', '3', '7', '0', '765', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '41', '6', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '41';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 41, 0, 0
                    , 100.00, -6, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*100.00," WHERE transferproductid = 766;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('41', '1', '6', '1', '766', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('41', '3', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 41, 0, 0
                    , 100.00, 6, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('41', '3', '6', '0', '766', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '217', '86', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '217';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 217, 0, 0
                    , 100.00, -86, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-86, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "86*2021-11-08*100.00," WHERE transferproductid = 767;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('217', '1', '86', '1', '767', 'تحويل منتجات من المخزن', 'storemovementController.php', '66.00', '-20', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('217', '3', '86', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 217, 0, 0
                    , 100.00, 86, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+86, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('217', '3', '86', '0', '767', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '86', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '137', '7', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '137';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 137, 0, 0
                    , 100.00, -7, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*100.00," WHERE transferproductid = 768;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('137', '1', '7', '1', '768', 'تحويل منتجات من المخزن', 'storemovementController.php', '7.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('137', '3', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 137, 0, 0
                    , 100.00, 7, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('137', '3', '7', '0', '768', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '161', '12', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '161';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 161, 0, 0
                    , 100.00, -12, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*100.00," WHERE transferproductid = 769;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('161', '1', '12', '1', '769', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('161', '3', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 161, 0, 0
                    , 100.00, 12, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('161', '3', '12', '0', '769', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '158', '10', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '158';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 158, 0, 0
                    , 100.00, -10, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*100.00," WHERE transferproductid = 770;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('158', '1', '10', '1', '770', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('158', '3', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 158, 0, 0
                    , 100.00, 10, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('158', '3', '10', '0', '770', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '160', '8', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '160';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 160, 0, 0
                    , 150.00, -8, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*150.00," WHERE transferproductid = 771;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('160', '1', '8', '1', '771', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('160', '3', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 160, 0, 0
                    , 150.00, 8, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('160', '3', '8', '0', '771', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '17', '9', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '78', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '17';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 17, 0, 0
                    , 185.00, -9, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*185.00," WHERE transferproductid = 772;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('17', '1', '9', '1', '772', 'تحويل منتجات من المخزن', 'storemovementController.php', '87.00', '78', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('17', '3', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 17, 0, 0
                    , 185.00, 9, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('17', '3', '9', '0', '772', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '138', '21', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '138';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 138, 0, 0
                    , 150.00, -21, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*150.00," WHERE transferproductid = 773;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('138', '1', '21', '1', '773', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('138', '3', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 138, 0, 0
                    , 150.00, 21, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('138', '3', '21', '0', '773', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '320', '8', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '320';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 320, 0, 0
                    , 150.00, -8, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*150.00," WHERE transferproductid = 774;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('320', '1', '8', '1', '774', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('320', '3', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 320, 0, 0
                    , 150.00, 8, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('320', '3', '8', '0', '774', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '460', '22', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '460';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 460, 0, 0
                    , 140.00, -22, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*140.00," WHERE transferproductid = 775;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('460', '1', '22', '1', '775', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('460', '3', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 460, 0, 0
                    , 140.00, 22, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('460', '3', '22', '0', '775', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '457', '21', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '457';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 457, 0, 0
                    , 155.00, -21, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*155.00," WHERE transferproductid = 776;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('457', '1', '21', '1', '776', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('457', '3', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 457, 0, 0
                    , 155.00, 21, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('457', '3', '21', '0', '776', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '511', '176', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '511';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 511, 0, 0
                    , 215.00, -176, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-176, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "176*2021-11-08*215.00," WHERE transferproductid = 777;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('511', '1', '176', '1', '777', 'تحويل منتجات من المخزن', 'storemovementController.php', '176.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('511', '3', '176', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 511, 0, 0
                    , 215.00, 176, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+176, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('511', '3', '176', '0', '777', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '176', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '458', '81', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '458';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 458, 0, 0
                    , 175.00, -81, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-81, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "81*2021-11-08*175.00," WHERE transferproductid = 778;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('458', '1', '81', '1', '778', 'تحويل منتجات من المخزن', 'storemovementController.php', '81.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('458', '3', '81', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 458, 0, 0
                    , 175.00, 81, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+81, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('458', '3', '81', '0', '778', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '81', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '315', '37', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '315';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 315, 0, 0
                    , 170.00, -37, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "37*2021-11-08*170.00," WHERE transferproductid = 779;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('315', '1', '37', '1', '779', 'تحويل منتجات من المخزن', 'storemovementController.php', '65.00', '28', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('315', '3', '37', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 315, 0, 0
                    , 170.00, 37, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('315', '3', '37', '0', '779', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '37', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '145', '9', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '145';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 145, 0, 0
                    , 120.00, -9, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*120.00," WHERE transferproductid = 780;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('145', '1', '9', '1', '780', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('145', '3', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 145, 0, 0
                    , 120.00, 9, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('145', '3', '9', '0', '780', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '209', '91', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-74', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '209';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 209, 0, 0
                    , 195.00, -91, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-91, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "91*2021-11-08*195.00," WHERE transferproductid = 781;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('209', '1', '91', '1', '781', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '-74', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('209', '3', '91', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 209, 0, 0
                    , 195.00, 91, 0, 0, 1, '2021-11-08 20:13:42')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+91, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:42' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('209', '3', '91', '0', '781', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '91', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '210', '3', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:42',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '210';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 210, 0, 0
                    , 150.00, -3, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*150.00," WHERE transferproductid = 782;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('210', '1', '3', '1', '782', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('210', '3', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 210, 0, 0
                    , 150.00, 3, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('210', '3', '3', '0', '782', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '268', '25', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-25', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '268';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 268, 0, 0
                    , 205.00, -25, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2021-11-08*205.00," WHERE transferproductid = 783;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('268', '1', '25', '1', '783', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-25', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('268', '3', '25', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 268, 0, 0
                    , 205.00, 25, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('268', '3', '25', '0', '783', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '166', '20', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '166';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 166, 0, 0
                    , 160.00, -20, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*160.00," WHERE transferproductid = 784;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('166', '1', '20', '1', '784', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('166', '3', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 166, 0, 0
                    , 160.00, 20, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('166', '3', '20', '0', '784', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '490', '25', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-25', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '490';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 490, 0, 0
                    , 165.00, -25, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2021-11-08*165.00," WHERE transferproductid = 785;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('490', '1', '25', '1', '785', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-25', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('490', '3', '25', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 490, 0, 0
                    , 165.00, 25, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('490', '3', '25', '0', '785', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '168', '26', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '168';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 168, 0, 0
                    , 150.00, -26, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*150.00," WHERE transferproductid = 786;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('168', '1', '26', '1', '786', 'تحويل منتجات من المخزن', 'storemovementController.php', '26.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('168', '3', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 168, 0, 0
                    , 150.00, 26, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('168', '3', '26', '0', '786', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '491', '9', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '491';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 491, 0, 0
                    , 165.00, -9, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*165.00," WHERE transferproductid = 787;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('491', '1', '9', '1', '787', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-9', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('491', '3', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 491, 0, 0
                    , 165.00, 9, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('491', '3', '9', '0', '787', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '164', '29', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '164';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 164, 0, 0
                    , 160.00, -29, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2021-11-08*160.00," WHERE transferproductid = 788;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('164', '1', '29', '1', '788', 'تحويل منتجات من المخزن', 'storemovementController.php', '29.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('164', '3', '29', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 164, 0, 0
                    , 160.00, 29, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('164', '3', '29', '0', '788', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '233', '95', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-95', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '233';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 233, 0, 0
                    , 175.00, -95, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-95, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "95*2021-11-08*175.00," WHERE transferproductid = 789;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('233', '1', '95', '1', '789', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-95', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('233', '3', '95', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 233, 0, 0
                    , 175.00, 95, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+95, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('233', '3', '95', '0', '789', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '95', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '508', '5', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '508';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 508, 0, 0
                    , 165.00, -5, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*165.00," WHERE transferproductid = 790;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('508', '1', '5', '1', '790', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('508', '3', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 508, 0, 0
                    , 165.00, 5, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('508', '3', '5', '0', '790', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '481', '7', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-7', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '481';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 481, 0, 0
                    , 165.00, -7, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*165.00," WHERE transferproductid = 791;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('481', '1', '7', '1', '791', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-7', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('481', '3', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 481, 0, 0
                    , 165.00, 7, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('481', '3', '7', '0', '791', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '152', '22', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '152';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 152, 0, 0
                    , 120.00, -22, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*120.00," WHERE transferproductid = 792;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('152', '1', '22', '1', '792', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('152', '3', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 152, 0, 0
                    , 120.00, 22, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('152', '3', '22', '0', '792', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '149', '17', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '149';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 149, 0, 0
                    , 120.00, -17, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*120.00," WHERE transferproductid = 793;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('149', '1', '17', '1', '793', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('149', '3', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 149, 0, 0
                    , 120.00, 17, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('149', '3', '17', '0', '793', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '167', '8', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '167';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 167, 0, 0
                    , 150.00, -8, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*150.00," WHERE transferproductid = 794;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('167', '1', '8', '1', '794', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('167', '3', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 167, 0, 0
                    , 150.00, 8, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('167', '3', '8', '0', '794', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '154', '21', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '154';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 154, 0, 0
                    , 120.00, -21, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*120.00," WHERE transferproductid = 795;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('154', '1', '21', '1', '795', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('154', '3', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 154, 0, 0
                    , 120.00, 21, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('154', '3', '21', '0', '795', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '244', '8', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-8', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '244';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 244, 0, 0
                    , 160.00, -8, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*160.00," WHERE transferproductid = 796;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('244', '1', '8', '1', '796', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-8', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('244', '3', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 244, 0, 0
                    , 160.00, 8, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('244', '3', '8', '0', '796', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '236', '40', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-40', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '236';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 236, 0, 0
                    , 160.00, -40, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2021-11-08*160.00," WHERE transferproductid = 797;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('236', '1', '40', '1', '797', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-40', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('236', '3', '40', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 236, 0, 0
                    , 160.00, 40, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('236', '3', '40', '0', '797', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '155', '19', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '155';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 155, 0, 0
                    , 120.00, -19, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*120.00," WHERE transferproductid = 798;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('155', '1', '19', '1', '798', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('155', '3', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 155, 0, 0
                    , 120.00, 19, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('155', '3', '19', '0', '798', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '486', '21', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-21', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '486';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 486, 0, 0
                    , 165.00, -21, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*165.00," WHERE transferproductid = 799;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('486', '1', '21', '1', '799', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-21', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('486', '3', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 486, 0, 0
                    , 165.00, 21, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('486', '3', '21', '0', '799', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '144', '18', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '144';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 144, 0, 0
                    , 150.00, -18, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*150.00," WHERE transferproductid = 800;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('144', '1', '18', '1', '800', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('144', '3', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 144, 0, 0
                    , 150.00, 18, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('144', '3', '18', '0', '800', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '487', '78', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-78', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '487';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 487, 0, 0
                    , 140.00, -78, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-78, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "78*2021-11-08*140.00," WHERE transferproductid = 801;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('487', '1', '78', '1', '801', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-78', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('487', '3', '78', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 487, 0, 0
                    , 140.00, 78, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+78, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('487', '3', '78', '0', '801', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '78', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '90', '38', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '90';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 90, 0, 0
                    , 165.00, -38, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "38*2021-11-08*165.00," WHERE transferproductid = 802;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '1', '38', '1', '802', 'تحويل منتجات من المخزن', 'storemovementController.php', '38.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('90', '3', '38', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 90, 0, 0
                    , 165.00, 38, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '3', '38', '0', '802', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '38', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '234', '98', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-98', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '234';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 234, 0, 0
                    , 190.00, -98, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-98, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "98*2021-11-08*190.00," WHERE transferproductid = 803;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('234', '1', '98', '1', '803', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-98', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('234', '3', '98', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 234, 0, 0
                    , 190.00, 98, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+98, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('234', '3', '98', '0', '803', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '98', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '186', '30', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '186';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 186, 0, 0
                    , 150.00, -30, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2021-11-08*150.00," WHERE transferproductid = 804;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('186', '1', '30', '1', '804', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('186', '3', '30', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 186, 0, 0
                    , 150.00, 30, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('186', '3', '30', '0', '804', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '162', '121', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '162';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 162, 0, 0
                    , 135.00, -121, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-121, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "121*2021-11-08*135.00," WHERE transferproductid = 805;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('162', '1', '121', '1', '805', 'تحويل منتجات من المخزن', 'storemovementController.php', '121.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('162', '3', '121', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 162, 0, 0
                    , 135.00, 121, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+121, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('162', '3', '121', '0', '805', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '121', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '184', '3', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '184';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 184, 0, 0
                    , 150.00, -3, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*150.00," WHERE transferproductid = 806;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('184', '1', '3', '1', '806', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('184', '3', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 184, 0, 0
                    , 150.00, 3, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('184', '3', '3', '0', '806', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '467', '28', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-28', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '467';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 467, 0, 0
                    , 165.00, -28, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2021-11-08*165.00," WHERE transferproductid = 807;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('467', '1', '28', '1', '807', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-28', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('467', '3', '28', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 467, 0, 0
                    , 165.00, 28, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('467', '3', '28', '0', '807', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '178', '64', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '178';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 178, 0, 0
                    , 195.00, -64, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-64, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "64*2021-11-08*195.00," WHERE transferproductid = 808;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('178', '1', '64', '1', '808', 'تحويل منتجات من المخزن', 'storemovementController.php', '64.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('178', '3', '64', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 178, 0, 0
                    , 195.00, 64, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+64, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('178', '3', '64', '0', '808', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '64', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '24', '21', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '17', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '24';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 24, 0, 0
                    , 170.00, -21, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*170.00," WHERE transferproductid = 809;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('24', '1', '21', '1', '809', 'تحويل منتجات من المخزن', 'storemovementController.php', '38.00', '17', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('24', '3', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 24, 0, 0
                    , 170.00, 21, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('24', '3', '21', '0', '809', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '202', '93', '2021-11-08', '1', '0','19',null,null,'2021-11-08 20:13:43',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '202';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 202, 0, 0
                    , 195.00, -93, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-93, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "93*2021-11-08*195.00," WHERE transferproductid = 810;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('202', '1', '93', '1', '810', 'تحويل منتجات من المخزن', 'storemovementController.php', '93.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('202', '3', '93', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 202, 0, 0
                    , 195.00, 93, 0, 0, 1, '2021-11-08 20:13:43')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+93, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:13:43' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('202', '3', '93', '0', '810', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '93', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:43:43";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:13:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:13:43', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:43:45";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:13:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:13:45', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:43:52";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:13:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:13:52', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:55:22";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:25:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:25:22', '1', 'add', '102.47.155.132', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(20,1,3,171,93,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 20:25:22',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '171';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 171, 0, 0
                    , 170.00, -93, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-93, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "93*2021-11-08*170.00," WHERE transferproductid = 811;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('171', '1', '93', '1', '811', 'تحويل منتجات من المخزن', 'storemovementController.php', '93.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('171', '3', '93', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 171, 0, 0
                    , 170.00, 93, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+93, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('171', '3', '93', '0', '811', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '93', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '170', '44', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-26', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '170';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 170, 0, 0
                    , 160.00, -44, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "44*2021-11-08*160.00," WHERE transferproductid = 812;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('170', '1', '44', '1', '812', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '-26', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('170', '3', '44', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 170, 0, 0
                    , 160.00, 44, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('170', '3', '44', '0', '812', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '44', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '191', '50', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '191';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 191, 0, 0
                    , 155.00, -50, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2021-11-08*155.00," WHERE transferproductid = 813;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('191', '1', '50', '1', '813', 'تحويل منتجات من المخزن', 'storemovementController.php', '50.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('191', '3', '50', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 191, 0, 0
                    , 155.00, 50, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('191', '3', '50', '0', '813', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '187', '50', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '187';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 187, 0, 0
                    , 155.00, -50, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2021-11-08*155.00," WHERE transferproductid = 814;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('187', '1', '50', '1', '814', 'تحويل منتجات من المخزن', 'storemovementController.php', '50.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('187', '3', '50', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 187, 0, 0
                    , 155.00, 50, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('187', '3', '50', '0', '814', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '205', '8', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '205';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 205, 0, 0
                    , 135.00, -8, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*135.00," WHERE transferproductid = 815;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('205', '1', '8', '1', '815', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('205', '3', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 205, 0, 0
                    , 135.00, 8, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('205', '3', '8', '0', '815', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '199', '8', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '199';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 199, 0, 0
                    , 135.00, -8, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*135.00," WHERE transferproductid = 816;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('199', '1', '8', '1', '816', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('199', '3', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 199, 0, 0
                    , 135.00, 8, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('199', '3', '8', '0', '816', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '189', '21', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '189';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 189, 0, 0
                    , 155.00, -21, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*155.00," WHERE transferproductid = 817;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('189', '1', '21', '1', '817', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('189', '3', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 189, 0, 0
                    , 155.00, 21, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('189', '3', '21', '0', '817', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '203', '5', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '203';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 203, 0, 0
                    , 135.00, -5, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*135.00," WHERE transferproductid = 818;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('203', '1', '5', '1', '818', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('203', '3', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 203, 0, 0
                    , 135.00, 5, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('203', '3', '5', '0', '818', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '444', '7', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '127', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '444';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 444, 0, 0
                    , 135.00, -7, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2021-11-08*135.00," WHERE transferproductid = 819;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('444', '1', '7', '1', '819', 'تحويل منتجات من المخزن', 'storemovementController.php', '134.00', '127', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('444', '3', '7', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 444, 0, 0
                    , 135.00, 7, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('444', '3', '7', '0', '819', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '185', '11', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '185';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 185, 0, 0
                    , 180.00, -11, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2021-11-08*180.00," WHERE transferproductid = 820;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('185', '1', '11', '1', '820', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('185', '3', '11', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 185, 0, 0
                    , 180.00, 11, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('185', '3', '11', '0', '820', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '182', '41', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '182';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 182, 0, 0
                    , 180.00, -41, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "41*2021-11-08*180.00," WHERE transferproductid = 821;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('182', '1', '41', '1', '821', 'تحويل منتجات من المخزن', 'storemovementController.php', '41.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('182', '3', '41', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 182, 0, 0
                    , 180.00, 41, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('182', '3', '41', '0', '821', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '41', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '108', '36', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '108';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 108, 0, 0
                    , 160.00, -36, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2021-11-08*160.00," WHERE transferproductid = 822;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('108', '1', '36', '1', '822', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('108', '3', '36', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 108, 0, 0
                    , 160.00, 36, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('108', '3', '36', '0', '822', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '146', '40', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '146';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 146, 0, 0
                    , 180.00, -40, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2021-11-08*180.00," WHERE transferproductid = 823;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('146', '1', '40', '1', '823', 'تحويل منتجات من المخزن', 'storemovementController.php', '40.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('146', '3', '40', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 146, 0, 0
                    , 180.00, 40, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('146', '3', '40', '0', '823', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '188', '40', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '188';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 188, 0, 0
                    , 155.00, -40, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2021-11-08*155.00," WHERE transferproductid = 824;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('188', '1', '40', '1', '824', 'تحويل منتجات من المخزن', 'storemovementController.php', '40.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('188', '3', '40', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 188, 0, 0
                    , 155.00, 40, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('188', '3', '40', '0', '824', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '195', '27', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '195';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 195, 0, 0
                    , 170.00, -27, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*170.00," WHERE transferproductid = 825;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('195', '1', '27', '1', '825', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('195', '3', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 195, 0, 0
                    , 170.00, 27, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('195', '3', '27', '0', '825', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '246', '28', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-28', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '246';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 246, 0, 0
                    , 190.00, -28, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2021-11-08*190.00," WHERE transferproductid = 826;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('246', '1', '28', '1', '826', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-28', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('246', '3', '28', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 246, 0, 0
                    , 190.00, 28, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('246', '3', '28', '0', '826', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '165', '12', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '165';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 165, 0, 0
                    , 160.00, -12, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*160.00," WHERE transferproductid = 827;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('165', '1', '12', '1', '827', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('165', '3', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 165, 0, 0
                    , 160.00, 12, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('165', '3', '12', '0', '827', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '194', '31', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '194';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 194, 0, 0
                    , 170.00, -31, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2021-11-08*170.00," WHERE transferproductid = 828;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('194', '1', '31', '1', '828', 'تحويل منتجات من المخزن', 'storemovementController.php', '31.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('194', '3', '31', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 194, 0, 0
                    , 170.00, 31, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('194', '3', '31', '0', '828', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '180', '88', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '180';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 180, 0, 0
                    , 195.00, -88, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-88, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "88*2021-11-08*195.00," WHERE transferproductid = 829;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('180', '1', '88', '1', '829', 'تحويل منتجات من المخزن', 'storemovementController.php', '88.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('180', '3', '88', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 180, 0, 0
                    , 195.00, 88, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+88, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('180', '3', '88', '0', '829', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '88', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '204', '13', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '204';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 204, 0, 0
                    , 195.00, -13, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*195.00," WHERE transferproductid = 830;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('204', '1', '13', '1', '830', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('204', '3', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 204, 0, 0
                    , 195.00, 13, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('204', '3', '13', '0', '830', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '181', '61', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '181';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 181, 0, 0
                    , 195.00, -61, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-61, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "61*2021-11-08*195.00," WHERE transferproductid = 831;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('181', '1', '61', '1', '831', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('181', '3', '61', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 181, 0, 0
                    , 195.00, 61, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+61, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('181', '3', '61', '0', '831', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '61', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '141', '9', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '141';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 141, 0, 0
                    , 165.00, -9, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*165.00," WHERE transferproductid = 832;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('141', '1', '9', '1', '832', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('141', '3', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 141, 0, 0
                    , 165.00, 9, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('141', '3', '9', '0', '832', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '223', '53', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-53', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '223';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 223, 0, 0
                    , 160.00, -53, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-53, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "53*2021-11-08*160.00," WHERE transferproductid = 833;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('223', '1', '53', '1', '833', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-53', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('223', '3', '53', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 223, 0, 0
                    , 160.00, 53, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+53, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('223', '3', '53', '0', '833', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '53', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '6', '40', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '6';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 6, 0, 0
                    , 145.00, -40, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2021-11-08*145.00," WHERE transferproductid = 834;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '1', '40', '1', '834', 'تحويل منتجات من المخزن', 'storemovementController.php', '70.00', '30', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('6', '3', '40', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 6, 0, 0
                    , 145.00, 40, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '3', '40', '0', '834', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '525', '37', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-25', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '525';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 525, 0, 0
                    , 195.00, -37, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "37*2021-11-08*195.00," WHERE transferproductid = 835;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('525', '1', '37', '1', '835', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '-25', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('525', '3', '37', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 525, 0, 0
                    , 195.00, 37, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('525', '3', '37', '0', '835', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '37', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '495', '17', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-17', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '495';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 495, 0, 0
                    , 165.00, -17, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*165.00," WHERE transferproductid = 836;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('495', '1', '17', '1', '836', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-17', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('495', '3', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 495, 0, 0
                    , 165.00, 17, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('495', '3', '17', '0', '836', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '151', '29', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '151';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 151, 0, 0
                    , 120.00, -29, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2021-11-08*120.00," WHERE transferproductid = 837;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('151', '1', '29', '1', '837', 'تحويل منتجات من المخزن', 'storemovementController.php', '29.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('151', '3', '29', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 151, 0, 0
                    , 120.00, 29, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('151', '3', '29', '0', '837', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '173', '14', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '173';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 173, 0, 0
                    , 195.00, -14, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*195.00," WHERE transferproductid = 838;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('173', '1', '14', '1', '838', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('173', '3', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 173, 0, 0
                    , 195.00, 14, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('173', '3', '14', '0', '838', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '172', '13', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '172';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 172, 0, 0
                    , 195.00, -13, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*195.00," WHERE transferproductid = 839;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('172', '1', '13', '1', '839', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('172', '3', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 172, 0, 0
                    , 195.00, 13, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('172', '3', '13', '0', '839', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '395', '39', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '395';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 395, 0, 0
                    , 175.00, -39, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2021-11-08*175.00," WHERE transferproductid = 840;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('395', '1', '39', '1', '840', 'تحويل منتجات من المخزن', 'storemovementController.php', '39.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('395', '3', '39', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 395, 0, 0
                    , 175.00, 39, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('395', '3', '39', '0', '840', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '14', '41', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '14';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 14, 0, 0
                    , 150.00, -41, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "41*2021-11-08*150.00," WHERE transferproductid = 841;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('14', '1', '41', '1', '841', 'تحويل منتجات من المخزن', 'storemovementController.php', '46.00', '5', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('14', '3', '41', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 14, 0, 0
                    , 150.00, 41, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('14', '3', '41', '0', '841', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '41', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '136', '12', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '136';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 136, 0, 0
                    , 160.00, -12, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*160.00," WHERE transferproductid = 842;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('136', '1', '12', '1', '842', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('136', '3', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 136, 0, 0
                    , 160.00, 12, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('136', '3', '12', '0', '842', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '150', '14', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '150';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 150, 0, 0
                    , 160.00, -14, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*160.00," WHERE transferproductid = 843;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('150', '1', '14', '1', '843', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('150', '3', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 150, 0, 0
                    , 160.00, 14, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('150', '3', '14', '0', '843', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '147', '19', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '147';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 147, 0, 0
                    , 120.00, -19, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*120.00," WHERE transferproductid = 844;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('147', '1', '19', '1', '844', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('147', '3', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 147, 0, 0
                    , 120.00, 19, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('147', '3', '19', '0', '844', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '156', '18', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '156';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 156, 0, 0
                    , 120.00, -18, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*120.00," WHERE transferproductid = 845;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('156', '1', '18', '1', '845', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('156', '3', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 156, 0, 0
                    , 120.00, 18, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('156', '3', '18', '0', '845', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '31', '43', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '63', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '31';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 31, 0, 0
                    , 180.00, -43, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "43*2021-11-08*180.00," WHERE transferproductid = 846;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('31', '1', '43', '1', '846', 'تحويل منتجات من المخزن', 'storemovementController.php', '106.00', '63', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('31', '3', '43', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 31, 0, 0
                    , 180.00, 43, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('31', '3', '43', '0', '846', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '43', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '3', '43', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '3';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 3, 0, 0
                    , 155.00, -43, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "43*2021-11-08*155.00," WHERE transferproductid = 847;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('3', '1', '43', '1', '847', 'تحويل منتجات من المخزن', 'storemovementController.php', '43.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('3', '3', '43', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 3, 0, 0
                    , 155.00, 43, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('3', '3', '43', '0', '847', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '43', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '21', '62', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '21';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 21, 0, 0
                    , 185.00, -62, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-62, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "62*2021-11-08*185.00," WHERE transferproductid = 848;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('21', '1', '62', '1', '848', 'تحويل منتجات من المخزن', 'storemovementController.php', '62.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('21', '3', '62', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 21, 0, 0
                    , 185.00, 62, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+62, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('21', '3', '62', '0', '848', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '62', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '140', '14', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '140';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 140, 0, 0
                    , 160.00, -14, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*160.00," WHERE transferproductid = 849;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('140', '1', '14', '1', '849', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('140', '3', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 140, 0, 0
                    , 160.00, 14, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('140', '3', '14', '0', '849', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '394', '58', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '58', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '394';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 394, 0, 0
                    , 195.00, -58, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-58, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "58*2021-11-08*195.00," WHERE transferproductid = 850;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('394', '1', '58', '1', '850', 'تحويل منتجات من المخزن', 'storemovementController.php', '116.00', '58', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('394', '3', '58', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 394, 0, 0
                    , 195.00, 58, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+58, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('394', '3', '58', '0', '850', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '58', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '176', '71', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '176';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 176, 0, 0
                    , 195.00, -71, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-71, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "71*2021-11-08*195.00," WHERE transferproductid = 851;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('176', '1', '71', '1', '851', 'تحويل منتجات من المخزن', 'storemovementController.php', '71.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('176', '3', '71', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 176, 0, 0
                    , 195.00, 71, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+71, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('176', '3', '71', '0', '851', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '71', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '215', '54', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '215';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 215, 0, 0
                    , 195.00, -54, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "54*2021-11-08*195.00," WHERE transferproductid = 852;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('215', '1', '54', '1', '852', 'تحويل منتجات من المخزن', 'storemovementController.php', '54.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('215', '3', '54', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 215, 0, 0
                    , 195.00, 54, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('215', '3', '54', '0', '852', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '54', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '174', '38', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '174';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 174, 0, 0
                    , 195.00, -38, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "38*2021-11-08*195.00," WHERE transferproductid = 853;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('174', '1', '38', '1', '853', 'تحويل منتجات من المخزن', 'storemovementController.php', '38.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('174', '3', '38', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 174, 0, 0
                    , 195.00, 38, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('174', '3', '38', '0', '853', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '38', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '306', '49', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '306';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 306, 0, 0
                    , 145.00, -49, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-49, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "49*2021-11-08*145.00," WHERE transferproductid = 854;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('306', '1', '49', '1', '854', 'تحويل منتجات من المخزن', 'storemovementController.php', '49.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('306', '3', '49', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 306, 0, 0
                    , 145.00, 49, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+49, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('306', '3', '49', '0', '854', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '49', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '304', '33', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '304';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 304, 0, 0
                    , 145.00, -33, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2021-11-08*145.00," WHERE transferproductid = 855;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('304', '1', '33', '1', '855', 'تحويل منتجات من المخزن', 'storemovementController.php', '33.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('304', '3', '33', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 304, 0, 0
                    , 145.00, 33, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('304', '3', '33', '0', '855', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '307', '12', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '307';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 307, 0, 0
                    , 150.00, -12, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*150.00," WHERE transferproductid = 856;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('307', '1', '12', '1', '856', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('307', '3', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 307, 0, 0
                    , 150.00, 12, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('307', '3', '12', '0', '856', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '309', '18', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '309';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 309, 0, 0
                    , 145.00, -18, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2021-11-08*145.00," WHERE transferproductid = 857;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('309', '1', '18', '1', '857', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('309', '3', '18', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 309, 0, 0
                    , 145.00, 18, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('309', '3', '18', '0', '857', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '310', '22', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '310';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 310, 0, 0
                    , 150.00, -22, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*150.00," WHERE transferproductid = 858;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('310', '1', '22', '1', '858', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('310', '3', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 310, 0, 0
                    , 150.00, 22, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('310', '3', '22', '0', '858', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '148', '20', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '148';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 148, 0, 0
                    , 120.00, -20, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*120.00," WHERE transferproductid = 859;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('148', '1', '20', '1', '859', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('148', '3', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 148, 0, 0
                    , 120.00, 20, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('148', '3', '20', '0', '859', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '153', '17', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '153';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 153, 0, 0
                    , 120.00, -17, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*120.00," WHERE transferproductid = 860;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('153', '1', '17', '1', '860', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('153', '3', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 153, 0, 0
                    , 120.00, 17, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('153', '3', '17', '0', '860', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '334', '4', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-4', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '334';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 334, 0, 0
                    , 180.00, -4, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*180.00," WHERE transferproductid = 861;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('334', '1', '4', '1', '861', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-4', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('334', '3', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 334, 0, 0
                    , 180.00, 4, 0, 0, 1, '2021-11-08 20:25:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('334', '3', '4', '0', '861', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '157', '14', '2021-11-08', '1', '0','20',null,null,'2021-11-08 20:25:23',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '157';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 157, 0, 0
                    , 120.00, -14, 0, 0, 1, '2021-11-08 20:25:23')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:23' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*120.00," WHERE transferproductid = 862;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('157', '1', '14', '1', '862', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('157', '3', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 157, 0, 0
                    , 120.00, 14, 0, 0, 1, '2021-11-08 20:25:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:25:23' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('157', '3', '14', '0', '862', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:55:24";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:25:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:25:24', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:55:26";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:25:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:25:26', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 16:55:29";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:25:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:25:30', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:07:20";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:37:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:37:20', '1', 'add', '102.47.155.132', '', 'DESKTOP');
DROP PROCEDURE IF EXISTS insertUniqueOptNum;;

CREATE PROCEDURE insertUniqueOptNum(IN optnum INT,IN storeidfrom INT,IN storeidto INT,IN productid INT,IN transferproductamount DECIMAL(10,2),IN transferproductdate DATE,IN userid INT,IN conditions INT,IN `comment` TEXT,IN deloperationnum INT,IN sizeid INT,IN colorid INT,IN driverid INT,IN drivertimeout INT,IN driverdate datetime,IN delivererid INT,IN deliverdate datetime,OUT inserted_id INT,OUT optnum_used INT)
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE id INT DEFAULT 0;
DECLARE lastopt INT DEFAULT 0;


DECLARE EXIT HANDLER FOR SQLEXCEPTION
    BEGIN
    ROLLBACK;
    GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE,
     @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
    SET @full_error = CONCAT("ERROR ", @errno, " (", @sqlstate, "): ", @text);
    SELECT @full_error;
    ROLLBACK;
END;



START TRANSACTION;


SELECT COUNT(*) FROM storemovement WHERE `operationnum` = optnum INTO n;
SELECT DISTINCT operationnum FROM storemovement WHERE operationnum != 0  ORDER BY operationnum DESC limit 1 INTO lastopt;
set lastopt = lastopt+1;

	IF n > 0 THEN


      INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,comment ,
                lastopt,
                deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),lastopt INTO inserted_id,optnum_used;
ELSE

    INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate)
                VALUES (storeidfrom, storeidto, productid,transferproductamount, transferproductdate, userid, conditions ,comment
                ,optnum
                ,deloperationnum,sizeid,colorid,driverid,drivertimeout,driverdate,delivererid,deliverdate);
            SELECT LAST_INSERT_ID(),optnum INTO inserted_id,optnum_used;
	END IF;

COMMIT WORK; -- it is mandatory dont wait comit in php.as if sp didnot found comit before reaching the end it will rollback giving no errors at all

End;
;;

;
BEGIN;
CALL insertUniqueOptNum(21,1,3,216,17,'2021-11-08',1,0, '' ,0,0,0,0,0,'2021-11-08 20:37:21',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '216';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 216, 0, 0
                    , 160.00, -17, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "17*2021-11-08*160.00," WHERE transferproductid = 863;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('216', '1', '17', '1', '863', 'تحويل منتجات من المخزن', 'storemovementController.php', '17.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('216', '3', '17', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 216, 0, 0
                    , 160.00, 17, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+17, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('216', '3', '17', '0', '863', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '17', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '483', '59', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-59', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '483';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 483, 0, 0
                    , 150.00, -59, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-59, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "59*2021-11-08*150.00," WHERE transferproductid = 864;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('483', '1', '59', '1', '864', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-59', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('483', '3', '59', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 483, 0, 0
                    , 150.00, 59, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+59, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('483', '3', '59', '0', '864', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '59', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '179', '13', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '179';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 179, 0, 0
                    , 195.00, -13, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*195.00," WHERE transferproductid = 865;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('179', '1', '13', '1', '865', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('179', '3', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 179, 0, 0
                    , 195.00, 13, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('179', '3', '13', '0', '865', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '142', '13', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '142';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 142, 0, 0
                    , 170.00, -13, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*170.00," WHERE transferproductid = 866;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('142', '1', '13', '1', '866', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('142', '3', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 142, 0, 0
                    , 170.00, 13, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('142', '3', '13', '0', '866', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '163', '26', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-18', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '163';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 163, 0, 0
                    , 165.00, -26, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*165.00," WHERE transferproductid = 867;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('163', '1', '26', '1', '867', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '-18', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('163', '3', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 163, 0, 0
                    , 165.00, 26, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('163', '3', '26', '0', '867', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '211', '19', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '211';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 211, 0, 0
                    , 150.00, -19, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*150.00," WHERE transferproductid = 868;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('211', '1', '19', '1', '868', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('211', '3', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 211, 0, 0
                    , 150.00, 19, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('211', '3', '19', '0', '868', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '213', '22', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '213';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 213, 0, 0
                    , 140.00, -22, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 140.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*140.00," WHERE transferproductid = 869;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('213', '1', '22', '1', '869', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('213', '3', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 213, 0, 0
                    , 140.00, 22, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('213', '3', '22', '0', '869', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '212', '61', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '212';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 212, 0, 0
                    , 155.00, -61, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-61, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "61*2021-11-08*155.00," WHERE transferproductid = 870;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('212', '1', '61', '1', '870', 'تحويل منتجات من المخزن', 'storemovementController.php', '61.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('212', '3', '61', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 212, 0, 0
                    , 155.00, 61, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+61, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('212', '3', '61', '0', '870', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '61', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '197', '10', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '197';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 197, 0, 0
                    , 170.00, -10, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2021-11-08*170.00," WHERE transferproductid = 871;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('197', '1', '10', '1', '871', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('197', '3', '10', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 197, 0, 0
                    , 170.00, 10, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('197', '3', '10', '0', '871', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '198', '21', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '198';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 198, 0, 0
                    , 170.00, -21, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2021-11-08*170.00," WHERE transferproductid = 872;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('198', '1', '21', '1', '872', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('198', '3', '21', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 198, 0, 0
                    , 170.00, 21, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('198', '3', '21', '0', '872', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '88', '16', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '88';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 88, 0, 0
                    , 200.00, -16, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2021-11-08*200.00," WHERE transferproductid = 873;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('88', '1', '16', '1', '873', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('88', '3', '16', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 88, 0, 0
                    , 200.00, 16, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('88', '3', '16', '0', '873', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '196', '6', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-9', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '196';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 196, 0, 0
                    , 170.00, -6, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 170.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2021-11-08*170.00," WHERE transferproductid = 874;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('196', '1', '6', '1', '874', 'تحويل منتجات من المخزن', 'storemovementController.php', '-3.00', '-9', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('196', '3', '6', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 196, 0, 0
                    , 170.00, 6, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('196', '3', '6', '0', '874', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '193', '12', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '193';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 193, 0, 0
                    , 160.00, -12, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*160.00," WHERE transferproductid = 875;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('193', '1', '12', '1', '875', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('193', '3', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 193, 0, 0
                    , 160.00, 12, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('193', '3', '12', '0', '875', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '444', '127', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '444';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 444, 0, 0
                    , 135.00, -127, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-127, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "127*2021-11-08*135.00," WHERE transferproductid = 876;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('444', '1', '127', '1', '876', 'تحويل منتجات من المخزن', 'storemovementController.php', '127.00', '0', '1', '2021-11-08','0','0');
UPDATE storedetail SET  productquantity = '134', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '1370';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 444, 0, 0
                    , 135.00, 127, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+127, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('444', '3', '127', '0', '876', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '7.00', '134', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '443', '44', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '443';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 443, 0, 0
                    , 135.00, -44, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "44*2021-11-08*135.00," WHERE transferproductid = 877;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('443', '1', '44', '1', '877', 'تحويل منتجات من المخزن', 'storemovementController.php', '44.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('443', '3', '44', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 443, 0, 0
                    , 135.00, 44, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('443', '3', '44', '0', '877', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '44', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '445', '19', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '445';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 445, 0, 0
                    , 135.00, -19, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*135.00," WHERE transferproductid = 878;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('445', '1', '19', '1', '878', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('445', '3', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 445, 0, 0
                    , 135.00, 19, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('445', '3', '19', '0', '878', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '406', '33', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '406';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 406, 0, 0
                    , 65.00, -33, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 65.00,
                        buyQuantity =buyQuantity+-33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2021-11-08*65.00," WHERE transferproductid = 879;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('406', '1', '33', '1', '879', 'تحويل منتجات من المخزن', 'storemovementController.php', '33.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('406', '3', '33', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 406, 0, 0
                    , 65.00, 33, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('406', '3', '33', '0', '879', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '407', '5', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '407';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 407, 0, 0
                    , 90.00, -5, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 90.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*90.00," WHERE transferproductid = 880;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('407', '1', '5', '1', '880', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('407', '3', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 407, 0, 0
                    , 90.00, 5, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('407', '3', '5', '0', '880', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '139', '20', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '139';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 139, 0, 0
                    , 150.00, -20, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*150.00," WHERE transferproductid = 881;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('139', '1', '20', '1', '881', 'تحويل منتجات من المخزن', 'storemovementController.php', '21.00', '1', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('139', '3', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 139, 0, 0
                    , 150.00, 20, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('139', '3', '20', '0', '881', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '190', '36', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '190';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 190, 0, 0
                    , 155.00, -36, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2021-11-08*155.00," WHERE transferproductid = 882;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('190', '1', '36', '1', '882', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('190', '3', '36', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 190, 0, 0
                    , 155.00, 36, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('190', '3', '36', '0', '882', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '192', '51', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '192';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 192, 0, 0
                    , 155.00, -51, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "51*2021-11-08*155.00," WHERE transferproductid = 883;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('192', '1', '51', '1', '883', 'تحويل منتجات من المخزن', 'storemovementController.php', '51.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('192', '3', '51', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 192, 0, 0
                    , 155.00, 51, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('192', '3', '51', '0', '883', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '51', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '398', '26', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-26', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '398';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 398, 0, 0
                    , 200.00, -26, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2021-11-08*200.00," WHERE transferproductid = 884;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('398', '1', '26', '1', '884', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-26', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('398', '3', '26', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 398, 0, 0
                    , 200.00, 26, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('398', '3', '26', '0', '884', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '218', '594', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-209', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '218';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 218, 0, 0
                    , 100.00, -594, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 100.00,
                        buyQuantity =buyQuantity+-594, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "594*2021-11-08*100.00," WHERE transferproductid = 885;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('218', '1', '594', '1', '885', 'تحويل منتجات من المخزن', 'storemovementController.php', '385.00', '-209', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('218', '3', '594', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 218, 0, 0
                    , 100.00, 594, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+594, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('218', '3', '594', '0', '885', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '594', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '200', '4', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-3', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '200';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 200, 0, 0
                    , 180.00, -4, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2021-11-08*180.00," WHERE transferproductid = 886;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('200', '1', '4', '1', '886', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '-3', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('200', '3', '4', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 200, 0, 0
                    , 180.00, 4, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('200', '3', '4', '0', '886', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '175', '8', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '175';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 175, 0, 0
                    , 195.00, -8, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2021-11-08*195.00," WHERE transferproductid = 887;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('175', '1', '8', '1', '887', 'تحويل منتجات من المخزن', 'storemovementController.php', '8.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('175', '3', '8', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 175, 0, 0
                    , 195.00, 8, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('175', '3', '8', '0', '887', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '76', '2', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '76';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 76, 0, 0
                    , 200.00, -2, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2021-11-08*200.00," WHERE transferproductid = 888;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('76', '1', '2', '1', '888', 'تحويل منتجات من المخزن', 'storemovementController.php', '2.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('76', '3', '2', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 76, 0, 0
                    , 200.00, 2, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('76', '3', '2', '0', '888', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '169', '78', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '169';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 169, 0, 0
                    , 160.00, -78, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-78, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "78*2021-11-08*160.00," WHERE transferproductid = 889;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('169', '1', '78', '1', '889', 'تحويل منتجات من المخزن', 'storemovementController.php', '78.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('169', '3', '78', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 169, 0, 0
                    , 160.00, 78, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+78, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('169', '3', '78', '0', '889', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '78', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '231', '5', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-5', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '231';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 231, 0, 0
                    , 160.00, -5, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*160.00," WHERE transferproductid = 890;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('231', '1', '5', '1', '890', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-5', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('231', '3', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 231, 0, 0
                    , 160.00, 5, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('231', '3', '5', '0', '890', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '177', '5', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '177';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 177, 0, 0
                    , 195.00, -5, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*195.00," WHERE transferproductid = 891;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('177', '1', '5', '1', '891', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('177', '3', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 177, 0, 0
                    , 195.00, 5, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('177', '3', '5', '0', '891', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '201', '23', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-18', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '201';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 201, 0, 0
                    , 195.00, -23, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2021-11-08*195.00," WHERE transferproductid = 892;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('201', '1', '23', '1', '892', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '-18', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('201', '3', '23', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 201, 0, 0
                    , 195.00, 23, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('201', '3', '23', '0', '892', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '383', '14', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '383';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 383, 0, 0
                    , 185.00, -14, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2021-11-08*185.00," WHERE transferproductid = 893;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '1', '14', '1', '893', 'تحويل منتجات من المخزن', 'storemovementController.php', '14.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('383', '3', '14', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 383, 0, 0
                    , 185.00, 14, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '3', '14', '0', '893', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '384', '1', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '384';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 384, 0, 0
                    , 185.00, -1, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2021-11-08*185.00," WHERE transferproductid = 894;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '1', '1', '1', '894', 'تحويل منتجات من المخزن', 'storemovementController.php', '1.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('384', '3', '1', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 384, 0, 0
                    , 185.00, 1, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('384', '3', '1', '0', '894', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '385', '5', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '385';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 385, 0, 0
                    , 185.00, -5, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2021-11-08*185.00," WHERE transferproductid = 895;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '1', '5', '1', '895', 'تحويل منتجات من المخزن', 'storemovementController.php', '5.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('385', '3', '5', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 385, 0, 0
                    , 185.00, 5, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '3', '5', '0', '895', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '387', '3', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '387';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 387, 0, 0
                    , 175.00, -3, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2021-11-08*175.00," WHERE transferproductid = 896;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('387', '1', '3', '1', '896', 'تحويل منتجات من المخزن', 'storemovementController.php', '3.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('387', '3', '3', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 387, 0, 0
                    , 175.00, 3, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('387', '3', '3', '0', '896', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '513', '19', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '513';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 513, 0, 0
                    , 210.00, -19, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*210.00," WHERE transferproductid = 897;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '1', '19', '1', '897', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('513', '3', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 513, 0, 0
                    , 210.00, 19, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('513', '3', '19', '0', '897', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '514', '32', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '514';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 514, 0, 0
                    , 210.00, -32, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2021-11-08*210.00," WHERE transferproductid = 898;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '1', '32', '1', '898', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('514', '3', '32', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 514, 0, 0
                    , 210.00, 32, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('514', '3', '32', '0', '898', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '515', '15', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '515';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 515, 0, 0
                    , 220.00, -15, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2021-11-08*220.00," WHERE transferproductid = 899;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '1', '15', '1', '899', 'تحويل منتجات من المخزن', 'storemovementController.php', '15.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('515', '3', '15', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 515, 0, 0
                    , 220.00, 15, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('515', '3', '15', '0', '899', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '516', '20', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '516';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 516, 0, 0
                    , 220.00, -20, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2021-11-08*220.00," WHERE transferproductid = 900;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '1', '20', '1', '900', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('516', '3', '20', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 516, 0, 0
                    , 220.00, 20, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '3', '20', '0', '900', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '517', '9', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '517';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 517, 0, 0
                    , 210.00, -9, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2021-11-08*210.00," WHERE transferproductid = 901;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '1', '9', '1', '901', 'تحويل منتجات من المخزن', 'storemovementController.php', '9.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('517', '3', '9', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 517, 0, 0
                    , 210.00, 9, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('517', '3', '9', '0', '901', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '518', '32', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '518';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 518, 0, 0
                    , 210.00, -32, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2021-11-08*210.00," WHERE transferproductid = 902;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '1', '32', '1', '902', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('518', '3', '32', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 518, 0, 0
                    , 210.00, 32, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '3', '32', '0', '902', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '450', '22', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '450';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 450, 0, 0
                    , 280.00, -22, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2021-11-08*280.00," WHERE transferproductid = 903;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('450', '1', '22', '1', '903', 'تحويل منتجات من المخزن', 'storemovementController.php', '22.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('450', '3', '22', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 450, 0, 0
                    , 280.00, 22, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('450', '3', '22', '0', '903', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '252', '19', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-19', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '252';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 252, 0, 0
                    , 235.00, -19, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*235.00," WHERE transferproductid = 904;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('252', '1', '19', '1', '904', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-19', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('252', '3', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 252, 0, 0
                    , 235.00, 19, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('252', '3', '19', '0', '904', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '251', '36', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-36', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '251';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 251, 0, 0
                    , 210.00, -36, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2021-11-08*210.00," WHERE transferproductid = 905;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('251', '1', '36', '1', '905', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-36', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('251', '3', '36', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 251, 0, 0
                    , 210.00, 36, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('251', '3', '36', '0', '905', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '382', '27', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '382';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 382, 0, 0
                    , 190.00, -27, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2021-11-08*190.00," WHERE transferproductid = 906;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '1', '27', '1', '906', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('382', '3', '27', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 382, 0, 0
                    , 190.00, 27, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('382', '3', '27', '0', '906', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '305', '29', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '305';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 305, 0, 0
                    , 145.00, -29, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2021-11-08*145.00," WHERE transferproductid = 907;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('305', '1', '29', '1', '907', 'تحويل منتجات من المخزن', 'storemovementController.php', '29.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('305', '3', '29', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 305, 0, 0
                    , 145.00, 29, 0, 0, 1, '2021-11-08 20:37:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:21' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('305', '3', '29', '0', '907', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '253', '13', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:21',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-2', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '253';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 253, 0, 0
                    , 225.00, -13, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyprice = 225.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*225.00," WHERE transferproductid = 908;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('253', '1', '13', '1', '908', 'تحويل منتجات من المخزن', 'storemovementController.php', '11.00', '-2', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('253', '3', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 253, 0, 0
                    , 225.00, 13, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('253', '3', '13', '0', '908', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '125', '19', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '125';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 125, 0, 0
                    , 185.00, -19, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2021-11-08*185.00," WHERE transferproductid = 909;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('125', '1', '19', '1', '909', 'تحويل منتجات من المخزن', 'storemovementController.php', '19.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('125', '3', '19', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 125, 0, 0
                    , 185.00, 19, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('125', '3', '19', '0', '909', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '128', '25', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-25', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '128';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 128, 0, 0
                    , 235.00, -25, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2021-11-08*235.00," WHERE transferproductid = 910;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('128', '1', '25', '1', '910', 'تحويل منتجات من المخزن', 'storemovementController.php', '0.00', '-25', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('128', '3', '25', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 128, 0, 0
                    , 235.00, 25, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('128', '3', '25', '0', '910', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '126', '56', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '126';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 126, 0, 0
                    , 195.00, -56, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-56, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "56*2021-11-08*195.00," WHERE transferproductid = 911;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('126', '1', '56', '1', '911', 'تحويل منتجات من المخزن', 'storemovementController.php', '56.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('126', '3', '56', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 126, 0, 0
                    , 195.00, 56, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+56, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('126', '3', '56', '0', '911', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '56', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '124', '34', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '124';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 124, 0, 0
                    , 185.00, -34, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2021-11-08*185.00," WHERE transferproductid = 912;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('124', '1', '34', '1', '912', 'تحويل منتجات من المخزن', 'storemovementController.php', '34.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('124', '3', '34', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 124, 0, 0
                    , 185.00, 34, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('124', '3', '34', '0', '912', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '254', '12', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '-17', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '254';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 254, 0, 0
                    , 270.00, -12, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2021-11-08*270.00," WHERE transferproductid = 913;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('254', '1', '12', '1', '913', 'تحويل منتجات من المخزن', 'storemovementController.php', '-5.00', '-17', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('254', '3', '12', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 254, 0, 0
                    , 270.00, 12, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('254', '3', '12', '0', '913', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2021-11-08','0','0');
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid) VALUES ('1', '3', '255', '13', '2021-11-08', '1', '0','21',null,null,'2021-11-08 20:37:22',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2021-11-08' WHERE storedetailid = '255';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 1, 255, 0, 0
                    , 255.00, -13, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyprice = 255.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2021-11-08*255.00," WHERE transferproductid = 914;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('255', '1', '13', '1', '914', 'تحويل منتجات من المخزن', 'storemovementController.php', '13.00', '0', '1', '2021-11-08','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('255', '3', '13', '1', '2021-11-08');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2021-11-08', 3, 255, 0, 0
                    , 255.00, 13, 0, 0, 1, '2021-11-08 20:37:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2021-11-08 20:37:22' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('255', '3', '13', '0', '914', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2021-11-08','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:07:22";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:37:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:37:22', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:07:26";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:37:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2021-11-08 20:37:26', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:07:56";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:37:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-08 20:37:56', '1', 'addsellBill', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:08:05";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:38:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2021-11-08 20:38:05', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:08:53";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:38:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2021-11-08 20:38:53', '1', 'add', '102.47.155.132', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'مرتبات', '', '', '2021-11-08', '1', '0','-1','3','0','0','0','','0');
UPDATE expenses SET expensestypeid = '-1', expensesname = 'مرتبات', expensesdetails = '', expensesValue = '0.00', expensesdate = '2021-11-08', userid = '1', conditions = '0',saveid = '3' , dailyentryid = '0', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '1';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:08:53";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:38:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2021-11-08 20:38:54', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:08:55";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:38:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2021-11-08 20:38:55', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:09:03";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:39:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2021-11-08 20:39:03', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:09:26";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:39:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:39:26', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:10:06";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:40:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:40:06', '1', 'add', '102.47.155.132', '', 'DESKTOP');
INSERT INTO expensestype (expensestypename, expensestypedetails, expensestypedate, conditions, userid, parent,type,saveid,addOnlyGroupIds) VALUES ('شحن كهرباء', '0', '2021-11-08', '0', '1', '0' ,'0','0','');
INSERT INTO accountstree (name, customName, parent, itemtype, itemfrom, notes, del, userid, mydate, itemtype2, theValue, theOrder, layingOrder,reportid) VALUES ('شحن كهرباء', 'شحن كهرباء', '14', '3', '0', '', '0', '1', '2021-11-08', '0', '0', '0', '','2');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:10:06";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:40:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:40:06', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:10:08";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:40:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:40:08', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:10:16";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:40:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2021-11-08 20:40:16', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE userid = 1;
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;
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-08 17:10:51";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:40:51", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-08 20:40:51', '6', '', '102.47.155.132', '', '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-08 17:10:52";
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-08 17:10:55";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:40:55", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2021-11-08 20:40:55', '6', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:11:11";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:41:11", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2021-11-08 20:41:11', '6', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:11:14";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:41:14", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-08 20:41:14', '6', 'addsellBill', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE userid = 6;
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-08 17:11:32";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:41:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2021-11-08 20:41:33', '1', '', '102.47.155.132', '', '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-08 17:11:33";
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-08 17:12:13";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:42:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:42:13', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:12:38";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:42:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:42:38', '1', 'add', '102.47.155.132', '', 'DESKTOP');
INSERT INTO expensestype (expensestypename, expensestypedetails, expensestypedate, conditions, userid, parent,type,saveid,addOnlyGroupIds) VALUES ('مرتبات', '0', '2021-11-08', '0', '1', '0' ,'0','0','');
INSERT INTO accountstree (name, customName, parent, itemtype, itemfrom, notes, del, userid, mydate, itemtype2, theValue, theOrder, layingOrder,reportid) VALUES ('مرتبات', 'مرتبات', '14', '3', '0', '', '0', '1', '2021-11-08', '0', '0', '0', '','2');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:12:39";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:42:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:42:39', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:12:41";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:42:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:42:41', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:12:44";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:42:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:42:44', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:12:54";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:42:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:42:54', '1', 'add', '102.47.155.132', '', 'DESKTOP');
INSERT INTO expensestype (expensestypename, expensestypedetails, expensestypedate, conditions, userid, parent,type,saveid,addOnlyGroupIds) VALUES ('ايجار', '0', '2021-11-08', '0', '1', '0' ,'0','0','');
INSERT INTO accountstree (name, customName, parent, itemtype, itemfrom, notes, del, userid, mydate, itemtype2, theValue, theOrder, layingOrder,reportid) VALUES ('ايجار', 'ايجار', '14', '3', '0', '', '0', '1', '2021-11-08', '0', '0', '0', '','2');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:12:57";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:42:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:42:57', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:12:59";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:42:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:42:59', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:13:03";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:43:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:43:03', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:13:18";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:43:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:43:18', '1', 'add', '102.47.155.132', '', 'DESKTOP');
INSERT INTO expensestype (expensestypename, expensestypedetails, expensestypedate, conditions, userid, parent,type,saveid,addOnlyGroupIds) VALUES ('نظافة', '0', '2021-11-08', '0', '1', '0' ,'0','0','');
INSERT INTO accountstree (name, customName, parent, itemtype, itemfrom, notes, del, userid, mydate, itemtype2, theValue, theOrder, layingOrder,reportid) VALUES ('نظافة', 'نظافة', '14', '3', '0', '', '0', '1', '2021-11-08', '0', '0', '0', '','2');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:13:22";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:43:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:43:22', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:13:24";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:43:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:43:24', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:13:27";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:43:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:43:27', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:13:51";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:43:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:43:51', '1', 'add', '102.47.155.132', '', 'DESKTOP');
INSERT INTO expensestype (expensestypename, expensestypedetails, expensestypedate, conditions, userid, parent,type,saveid,addOnlyGroupIds) VALUES ('صيانة اجهزة', '0', '2021-11-08', '0', '1', '0' ,'0','0','');
INSERT INTO accountstree (name, customName, parent, itemtype, itemfrom, notes, del, userid, mydate, itemtype2, theValue, theOrder, layingOrder,reportid) VALUES ('صيانة اجهزة', 'صيانة اجهزة', '14', '3', '0', '', '0', '1', '2021-11-08', '0', '0', '0', '','2');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:13:56";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:43:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:43:56', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:13:58";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:43:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:43:58', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:14:00";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:44:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:44:00', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:14:13";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:44:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:44:13', '1', 'add', '102.47.155.132', '', 'DESKTOP');
INSERT INTO expensestype (expensestypename, expensestypedetails, expensestypedate, conditions, userid, parent,type,saveid,addOnlyGroupIds) VALUES ('ادوات مكتبية', '0', '2021-11-08', '0', '1', '0' ,'0','0','');
INSERT INTO accountstree (name, customName, parent, itemtype, itemfrom, notes, del, userid, mydate, itemtype2, theValue, theOrder, layingOrder,reportid) VALUES ('ادوات مكتبية', 'ادوات مكتبية', '14', '3', '0', '', '0', '1', '2021-11-08', '0', '0', '0', '','2');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:14:13";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:44:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:44:14', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:14:15";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:44:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:44:16', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:14:19";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:44:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:44:19', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:14:36";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:44:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:44:36', '1', 'add', '102.47.155.132', '', 'DESKTOP');
INSERT INTO expensestype (expensestypename, expensestypedetails, expensestypedate, conditions, userid, parent,type,saveid,addOnlyGroupIds) VALUES ('ضيافة', '0', '2021-11-08', '0', '1', '0' ,'0','0','');
INSERT INTO accountstree (name, customName, parent, itemtype, itemfrom, notes, del, userid, mydate, itemtype2, theValue, theOrder, layingOrder,reportid) VALUES ('ضيافة', 'ضيافة', '14', '3', '0', '', '0', '1', '2021-11-08', '0', '0', '0', '','2');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:14:42";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:44:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:44:42', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:14:44";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:44:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:44:44', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:15:56";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:45:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:45:56', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:16:26";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:46:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:46:26', '1', 'add', '102.47.155.132', '', 'DESKTOP');
INSERT INTO expensestype (expensestypename, expensestypedetails, expensestypedate, conditions, userid, parent,type,saveid,addOnlyGroupIds) VALUES ('شحن بضاعة', '0', '2021-11-08', '0', '1', '0' ,'0','0','');
INSERT INTO accountstree (name, customName, parent, itemtype, itemfrom, notes, del, userid, mydate, itemtype2, theValue, theOrder, layingOrder,reportid) VALUES ('شحن بضاعة', 'شحن بضاعة', '14', '3', '0', '', '0', '1', '2021-11-08', '0', '0', '0', '','2');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:16:27";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:46:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:46:27', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:16:29";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:46:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:46:29', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:16:39";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:46:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:46:39', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:18:43";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:48:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:48:43', '1', 'add', '102.47.155.132', '', 'DESKTOP');
INSERT INTO expensestype (expensestypename, expensestypedetails, expensestypedate, conditions, userid, parent,type,saveid,addOnlyGroupIds) VALUES ('حوافز', '0', '2021-11-08', '0', '1', '0' ,'0','0','');
INSERT INTO accountstree (name, customName, parent, itemtype, itemfrom, notes, del, userid, mydate, itemtype2, theValue, theOrder, layingOrder,reportid) VALUES ('حوافز', 'حوافز', '14', '3', '0', '', '0', '1', '2021-11-08', '0', '0', '0', '','2');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:18:44";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:48:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:48:44', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:18:46";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:48:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:48:46', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:19:14";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:49:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:49:14', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:20:08";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:50:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:50:08', '1', 'add', '102.47.155.132', '', 'DESKTOP');
INSERT INTO expensestype (expensestypename, expensestypedetails, expensestypedate, conditions, userid, parent,type,saveid,addOnlyGroupIds) VALUES ('الضرائب', '0', '2021-11-08', '0', '1', '0' ,'0','0','');
INSERT INTO accountstree (name, customName, parent, itemtype, itemfrom, notes, del, userid, mydate, itemtype2, theValue, theOrder, layingOrder,reportid) VALUES ('الضرائب', 'الضرائب', '14', '3', '0', '', '0', '1', '2021-11-08', '0', '0', '0', '','2');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:20:09";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:50:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:50:09', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:20:11";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:50:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:50:11', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:20:15";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:50:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:50:15', '1', '', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:21:49";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:51:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:51:49', '1', 'add', '102.47.155.132', '', 'DESKTOP');
INSERT INTO expensestype (expensestypename, expensestypedetails, expensestypedate, conditions, userid, parent,type,saveid,addOnlyGroupIds) VALUES ('ادوات كهربائيه', '0', '2021-11-08', '0', '1', '0' ,'0','0','');
INSERT INTO accountstree (name, customName, parent, itemtype, itemfrom, notes, del, userid, mydate, itemtype2, theValue, theOrder, layingOrder,reportid) VALUES ('ادوات كهربائيه', 'ادوات كهربائيه', '14', '3', '0', '', '0', '1', '2021-11-08', '0', '0', '0', '','2');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:21:49";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:51:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:51:49', '1', 'sucess', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:21:51";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 20:51:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesTypeController.php', '2021-11-08 20:51:51', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:32:32";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 21:02:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-08 21:02:32', '1', 'addsellBill', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:32:38";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 21:02:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2021-11-08 21:02:38', '1', 'show', '102.47.155.132', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2021-11-08 17:32:41";
UPDATE user SET loginip = "102.47.155.132", lastactivetime = "2021-11-08 21:02:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2021-11-08 21:02:41', '1', 'addsellBill', '102.47.155.132', '', 'DESKTOP');
