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 < "2024-02-25 06:28:15";
UPDATE user SET loginip = "197.32.161.124", lastactivetime = "2024-02-25 09:58:15", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 09:58:15', '3', '', '197.32.161.124', '', '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 = '0', 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 = '2024-02-25',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 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 = '0', 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 = '2024-02-25',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 < "2024-02-25 06:28:18";
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 < "2024-02-25 06:29:32";
UPDATE user SET loginip = "197.32.161.124", lastactivetime = "2024-02-25 09:59:32", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 09:59:32', '3', 'addsellBill', '197.32.161.124', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 06:29:38";
UPDATE user SET loginip = "197.32.161.124", lastactivetime = "2024-02-25 09:59:38", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 09:59:38', '3', '', '197.32.161.124', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 06:30:24";
UPDATE user SET loginip = "197.32.161.124", lastactivetime = "2024-02-25 10:00:24", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 10:00:24', '3', 'add', '197.32.161.124', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'الشيخ وليد ', '', '13945', '2024-02-25', '3', '0','-1','8','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '0',  userid = '3' WHERE saveid = '8';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('13945.00','13945', '1', '8', 'إضافة مصروف', '4607', '0', '2024-02-25 10:00:24', '3',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '13945', '13945', '2024-02-25', '3', '0', '0', '2024-02-25 10:00:24','اضافة اسم مصروف( الشيخ وليد  )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9513', '160', '13945', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3178058', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9513', '142', '13945', '','0');
UPDATE accountstree SET name = 'خزينة محل ابو كريم', customName = 'خزينة محل ابو كريم', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '-2013606', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '142';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'الشيخ وليد ', expensesdetails = '', expensesValue = '13945.00', expensesdate = '2024-02-25', userid = '3', conditions = '0',saveid = '8' , dailyentryid = '9513', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4607';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 06:30:24";
UPDATE user SET loginip = "197.32.161.124", lastactivetime = "2024-02-25 10:00:24", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 10:00:24', '3', 'sucess', '197.32.161.124', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 06:30:26";
UPDATE user SET loginip = "197.32.161.124", lastactivetime = "2024-02-25 10:00:26", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 10:00:26', '3', 'show', '197.32.161.124', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 06:30:27";
UPDATE user SET loginip = "197.32.161.124", lastactivetime = "2024-02-25 10:00:27", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 10:00:27', '3', '', '197.32.161.124', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 06:30:38";
UPDATE user SET loginip = "197.32.161.124", lastactivetime = "2024-02-25 10:00:38", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 10:00:38', '3', 'addsellBill', '197.32.161.124', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 06:34:51";
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 < "2024-02-25 06:35:28";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 10:05:28", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 10:05:28', '4', '', '197.35.242.129', '', '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 < "2024-02-25 06:35:29";
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 < "2024-02-25 06:35:31";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 10:05:31", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 10:05:31', '4', 'addsellBill', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 07:19:28";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 10:49:28", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 10:49:28', '4', '', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 07:19:30";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 10:49:30", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 10:49:30', '4', 'addsellBill', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 08:20:49";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 11:50:49", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 11:50:49', '4', 'addsellBill', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 09:49:15";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 13:19:15", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 13:19:15', '4', 'addAndRetuen', '197.35.242.129', '', 'DESKTOP');

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 065db0d79ad6f4
-- ----------------------------------------------------------------------------------------------------

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

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 065db0d79ad6f4 and sellbillId = 15529 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 09:49:16";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 13:19:16", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 13:19:16', '4', 'addsellBill', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 09:49:19";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 13:19:19", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 13:19:19', '4', '', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 09:49:37";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 13:19:37", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 13:19:37', '4', 'addsellBill', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 12:08:10";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 15:38:11", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 15:38:11', '4', '', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 12:08:30";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 15:38:30", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 15:38:30', '4', 'add', '197.35.242.129', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'الشيخ وليد  خدهم امبارح', '', '2265', '2024-02-25', '4', '0','-1','7','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '270',  userid = '4' WHERE saveid = '7';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('2535.00','2265', '1', '7', 'إضافة مصروف', '4608', '270', '2024-02-25 15:38:30', '4',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '2265', '2265', '2024-02-25', '4', '0', '0', '2024-02-25 15:38:30','اضافة اسم مصروف( الشيخ وليد  خدهم امبارح )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9514', '160', '2265', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3180323', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9514', '141', '2265', '','0');
UPDATE accountstree SET name = 'خزينة محل العميد', customName = 'خزينة محل العميد', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '-1757967', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '141';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'الشيخ وليد  خدهم امبارح', expensesdetails = '', expensesValue = '2265.00', expensesdate = '2024-02-25', userid = '4', conditions = '0',saveid = '7' , dailyentryid = '9514', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4608';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 12:08:30";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 15:38:30", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 15:38:30', '4', 'sucess', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 12:08:32";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 15:38:32", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 15:38:32', '4', '', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 12:08:41";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 15:38:41", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 15:38:41', '4', '', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 12:08:52";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 15:38:52", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 15:38:53', '4', 'add', '197.35.242.129', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'مصروف احمد يومين', '', '40', '2024-02-25', '4', '0','-1','7','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '230',  userid = '4' WHERE saveid = '7';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('270.00','40', '1', '7', 'إضافة مصروف', '4609', '230', '2024-02-25 15:38:53', '4',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '40', '40', '2024-02-25', '4', '0', '0', '2024-02-25 15:38:53','اضافة اسم مصروف( مصروف احمد يومين )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9515', '160', '40', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3180363', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9515', '141', '40', '','0');
UPDATE accountstree SET name = 'خزينة محل العميد', customName = 'خزينة محل العميد', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '-1758007', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '141';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'مصروف احمد يومين', expensesdetails = '', expensesValue = '40.00', expensesdate = '2024-02-25', userid = '4', conditions = '0',saveid = '7' , dailyentryid = '9515', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4609';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 12:08:53";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 15:38:53", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 15:38:53', '4', 'sucess', '197.35.242.129', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 12:08:54";
UPDATE user SET loginip = "197.35.242.129", lastactivetime = "2024-02-25 15:38:54", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 15:38:55', '4', '', '197.35.242.129', '', '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 < "2024-02-25 13:05:02";
UPDATE user SET loginip = "156.210.58.147", lastactivetime = "2024-02-25 16:35:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 16:35:02', '1', '', '156.210.58.147', '', '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 < "2024-02-25 13:05:02";
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 < "2024-02-25 13:05:17";
UPDATE user SET loginip = "156.210.58.147", lastactivetime = "2024-02-25 16:35:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 16:35:17', '1', '', '156.210.58.147', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 13:06:16";
UPDATE user SET loginip = "156.210.58.147", lastactivetime = "2024-02-25 16:36:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('transfermoneyController.php', '2024-02-25 16:36:16', '1', '', '156.210.58.147', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 13:06:21";
UPDATE user SET loginip = "156.210.58.147", lastactivetime = "2024-02-25 16:36:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 16:36:21', '1', '', '156.210.58.147', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 13:06:28";
UPDATE user SET loginip = "156.210.58.147", lastactivetime = "2024-02-25 16:36:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 16:36:28', '1', 'addsellBill', '156.210.58.147', '', '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 < "2024-02-25 13:52:00";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:22:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 17:22:01', '1', '', '156.210.99.74', '', '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 < "2024-02-25 13:52:01";
DROP PROCEDURE IF EXISTS clientInUse;;

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

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

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 13:52:04";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:22:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 17:22:04', '1', 'addsellBill', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 13:52:26";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:22:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 17:22:26', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 13:55:27";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:25:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 17:25:27', '1', 'add', '156.210.99.74', '', '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','','1','420','420', '470','430', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '420','420','420','420','420','0','0','2.38','11.9','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص1', productDescription = '', productCatId = '1', productBuyPrice = '420', productSellAllPrice = '420', productSellUnitPrice = '470', productSellHalfPrice = '430', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01574',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '420',lastbuyprice_withDiscount = '420',meanbuyprice = '420',meanbuyprice_withDiscount = '420' , productbuypricereal = '420' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.38' , buypart_precentage = '11.9',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1574';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1574', '1', '2024-02-25', '1', '0','0157401','420','430','470','420');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1574', '1', '156', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '1', '156', '0', '1574', 'إضافة منتج', 'productController.php', '0', '156', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1574, 1,'2024-02-25 17:25:27',1)
                ON DUPLICATE KEY UPDATE productid = 1574, edited = 1, sysdate = '2024-02-25 17:25:27', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '65520', '65520', '2024-02-25', '1', '0', '0', '2024-02-25 17:25:27','إضافة منتج ص1 الكمية 156','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9516', '19', '65520', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '15910845.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9516', '7', '65520', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '16669126.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص1', productDescription = '', productCatId = '1', productBuyPrice = '420.00', productSellAllPrice = '420.00', productSellUnitPrice = '470.00', productSellHalfPrice = '430.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01574',type ='0', expireDate = '0' , dailyentryId = '9516',isService = '0',isOptic = '0',lastbuyprice = '420',lastbuyprice_withDiscount = '420',meanbuyprice = '420',meanbuyprice_withDiscount = '420' , productbuypricereal = '420' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.38' , buypart_precentage = '11.9',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1574';
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 ('ص2','','1','360','360', '410','370', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '360','360','360','360','360','0','0','2.78','13.89','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص2', productDescription = '', productCatId = '1', productBuyPrice = '360', productSellAllPrice = '360', productSellUnitPrice = '410', productSellHalfPrice = '370', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01575',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '360',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.78' , buypart_precentage = '13.89',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1575';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1575', '1', '2024-02-25', '1', '0','0157501','360','370','410','360');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1575', '1', '168', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '1', '168', '0', '1575', 'إضافة منتج', 'productController.php', '0', '168', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1575, 1,'2024-02-25 17:25:27',1)
                ON DUPLICATE KEY UPDATE productid = 1575, edited = 1, sysdate = '2024-02-25 17:25:27', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '60480', '60480', '2024-02-25', '1', '0', '0', '2024-02-25 17:25:27','إضافة منتج ص2 الكمية 168','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9517', '19', '60480', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '15971325.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9517', '7', '60480', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '16729606.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص2', productDescription = '', productCatId = '1', productBuyPrice = '360.00', productSellAllPrice = '360.00', productSellUnitPrice = '410.00', productSellHalfPrice = '370.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01575',type ='0', expireDate = '0' , dailyentryId = '9517',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '360',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.78' , buypart_precentage = '13.89',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1575';
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 ('ص3','','1','420','420', '470','430', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '420','420','420','420','420','0','0','2.38','11.9','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص3', productDescription = '', productCatId = '1', productBuyPrice = '420', productSellAllPrice = '420', productSellUnitPrice = '470', productSellHalfPrice = '430', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01576',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '420',lastbuyprice_withDiscount = '420',meanbuyprice = '420',meanbuyprice_withDiscount = '420' , productbuypricereal = '420' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.38' , buypart_precentage = '11.9',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1576';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1576', '1', '2024-02-25', '1', '0','0157601','420','430','470','420');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1576', '1', '226', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '1', '226', '0', '1576', 'إضافة منتج', 'productController.php', '0', '226', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1576, 1,'2024-02-25 17:25:27',1)
                ON DUPLICATE KEY UPDATE productid = 1576, edited = 1, sysdate = '2024-02-25 17:25:27', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '94920', '94920', '2024-02-25', '1', '0', '0', '2024-02-25 17:25:27','إضافة منتج ص3 الكمية 226','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9518', '19', '94920', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '16066245.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9518', '7', '94920', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '16824526.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص3', productDescription = '', productCatId = '1', productBuyPrice = '420.00', productSellAllPrice = '420.00', productSellUnitPrice = '470.00', productSellHalfPrice = '430.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01576',type ='0', expireDate = '0' , dailyentryId = '9518',isService = '0',isOptic = '0',lastbuyprice = '420',lastbuyprice_withDiscount = '420',meanbuyprice = '420',meanbuyprice_withDiscount = '420' , productbuypricereal = '420' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.38' , buypart_precentage = '11.9',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1576';
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 ('ص4','','1','450','450', '500','460', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '450','450','450','450','450','0','0','2.22','11.11','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص4', productDescription = '', productCatId = '1', productBuyPrice = '450', productSellAllPrice = '450', productSellUnitPrice = '500', productSellHalfPrice = '460', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01577',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '450',meanbuyprice = '450',meanbuyprice_withDiscount = '450' , productbuypricereal = '450' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.22' , buypart_precentage = '11.11',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1577';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1577', '1', '2024-02-25', '1', '0','0157701','450','460','500','450');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1577', '1', '216', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1577', '1', '216', '0', '1577', 'إضافة منتج', 'productController.php', '0', '216', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1577, 1,'2024-02-25 17:25:27',1)
                ON DUPLICATE KEY UPDATE productid = 1577, edited = 1, sysdate = '2024-02-25 17:25:27', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '97200', '97200', '2024-02-25', '1', '0', '0', '2024-02-25 17:25:27','إضافة منتج ص4 الكمية 216','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9519', '19', '97200', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '16163445.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9519', '7', '97200', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '16921726.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص4', productDescription = '', productCatId = '1', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '500.00', productSellHalfPrice = '460.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01577',type ='0', expireDate = '0' , dailyentryId = '9519',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '450',meanbuyprice = '450',meanbuyprice_withDiscount = '450' , productbuypricereal = '450' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.22' , buypart_precentage = '11.11',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1577';
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 ('ص5','','1','440','440', '490','450', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '440','440','440','440','440','0','0','2.27','11.36','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص5', productDescription = '', productCatId = '1', productBuyPrice = '440', productSellAllPrice = '440', productSellUnitPrice = '490', productSellHalfPrice = '450', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01578',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '440',lastbuyprice_withDiscount = '440',meanbuyprice = '440',meanbuyprice_withDiscount = '440' , productbuypricereal = '440' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.27' , buypart_precentage = '11.36',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1578';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1578', '1', '2024-02-25', '1', '0','0157801','440','450','490','440');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1578', '1', '216', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '1', '216', '0', '1578', 'إضافة منتج', 'productController.php', '0', '216', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1578, 1,'2024-02-25 17:25:27',1)
                ON DUPLICATE KEY UPDATE productid = 1578, edited = 1, sysdate = '2024-02-25 17:25:27', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '95040', '95040', '2024-02-25', '1', '0', '0', '2024-02-25 17:25:27','إضافة منتج ص5 الكمية 216','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9520', '19', '95040', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '16258485.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9520', '7', '95040', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '17016766.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص5', productDescription = '', productCatId = '1', productBuyPrice = '440.00', productSellAllPrice = '440.00', productSellUnitPrice = '490.00', productSellHalfPrice = '450.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01578',type ='0', expireDate = '0' , dailyentryId = '9520',isService = '0',isOptic = '0',lastbuyprice = '440',lastbuyprice_withDiscount = '440',meanbuyprice = '440',meanbuyprice_withDiscount = '440' , productbuypricereal = '440' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.27' , buypart_precentage = '11.36',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1578';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 13:55:29";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:25:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 17:25:29', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:00:50";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:30:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 17:30:50', '1', 'add', '156.210.99.74', '', '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 ('ص6','','1','430','430', '430','430', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '430','430','430','430','430','0','0','0','0','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص6', productDescription = '', productCatId = '1', productBuyPrice = '430', productSellAllPrice = '430', productSellUnitPrice = '430', productSellHalfPrice = '430', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01579',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '430',meanbuyprice = '430',meanbuyprice_withDiscount = '430' , productbuypricereal = '430' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1579';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1579', '1', '2024-02-25', '1', '0','0157901','430','430','430','430');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1579', '1', '224', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '1', '224', '0', '1579', 'إضافة منتج', 'productController.php', '0', '224', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1579, 1,'2024-02-25 17:30:50',1)
                ON DUPLICATE KEY UPDATE productid = 1579, edited = 1, sysdate = '2024-02-25 17:30:50', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '96320', '96320', '2024-02-25', '1', '0', '0', '2024-02-25 17:30:50','إضافة منتج ص6 الكمية 224','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9521', '19', '96320', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '16354805.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9521', '7', '96320', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '17113086.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص6', productDescription = '', productCatId = '1', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01579',type ='0', expireDate = '0' , dailyentryId = '9521',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '430',meanbuyprice = '430',meanbuyprice_withDiscount = '430' , productbuypricereal = '430' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1579';
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 ('ص7','','1','430','430', '480','440', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '430','430','430','430','430','0','0','2.33','11.63','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص7', productDescription = '', productCatId = '1', productBuyPrice = '430', productSellAllPrice = '430', productSellUnitPrice = '480', productSellHalfPrice = '440', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01580',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '430',meanbuyprice = '430',meanbuyprice_withDiscount = '430' , productbuypricereal = '430' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.33' , buypart_precentage = '11.63',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1580';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1580', '1', '2024-02-25', '1', '0','0158001','430','440','480','430');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1580', '1', '228', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '1', '228', '0', '1580', 'إضافة منتج', 'productController.php', '0', '228', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1580, 1,'2024-02-25 17:30:50',1)
                ON DUPLICATE KEY UPDATE productid = 1580, edited = 1, sysdate = '2024-02-25 17:30:50', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '98040', '98040', '2024-02-25', '1', '0', '0', '2024-02-25 17:30:50','إضافة منتج ص7 الكمية 228','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9522', '19', '98040', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '16452845.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9522', '7', '98040', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '17211126.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص7', productDescription = '', productCatId = '1', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '480.00', productSellHalfPrice = '440.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01580',type ='0', expireDate = '0' , dailyentryId = '9522',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '430',meanbuyprice = '430',meanbuyprice_withDiscount = '430' , productbuypricereal = '430' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.33' , buypart_precentage = '11.63',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1580';
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 ('ص8','','1','450','450', '500','460', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '450','450','450','450','450','0','0','2.22','11.11','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص8', productDescription = '', productCatId = '1', productBuyPrice = '450', productSellAllPrice = '450', productSellUnitPrice = '500', productSellHalfPrice = '460', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01581',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '450',meanbuyprice = '450',meanbuyprice_withDiscount = '450' , productbuypricereal = '450' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.22' , buypart_precentage = '11.11',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1581';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1581', '1', '2024-02-25', '1', '0','0158101','450','460','500','450');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1581', '1', '234', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '1', '234', '0', '1581', 'إضافة منتج', 'productController.php', '0', '234', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1581, 1,'2024-02-25 17:30:50',1)
                ON DUPLICATE KEY UPDATE productid = 1581, edited = 1, sysdate = '2024-02-25 17:30:50', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '105300', '105300', '2024-02-25', '1', '0', '0', '2024-02-25 17:30:50','إضافة منتج ص8 الكمية 234','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9523', '19', '105300', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '16558145.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9523', '7', '105300', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '17316426.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص8', productDescription = '', productCatId = '1', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '500.00', productSellHalfPrice = '460.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01581',type ='0', expireDate = '0' , dailyentryId = '9523',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '450',meanbuyprice = '450',meanbuyprice_withDiscount = '450' , productbuypricereal = '450' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.22' , buypart_precentage = '11.11',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1581';
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 ('ص9','','1','410','410', '460','420', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '410','410','410','410','410','0','0','2.44','12.2','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص9', productDescription = '', productCatId = '1', productBuyPrice = '410', productSellAllPrice = '410', productSellUnitPrice = '460', productSellHalfPrice = '420', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01582',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '410',meanbuyprice_withDiscount = '410' , productbuypricereal = '410' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.44' , buypart_precentage = '12.2',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1582';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1582', '1', '2024-02-25', '1', '0','0158201','410','420','460','410');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1582', '1', '234', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '1', '234', '0', '1582', 'إضافة منتج', 'productController.php', '0', '234', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1582, 1,'2024-02-25 17:30:50',1)
                ON DUPLICATE KEY UPDATE productid = 1582, edited = 1, sysdate = '2024-02-25 17:30:50', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '95940', '95940', '2024-02-25', '1', '0', '0', '2024-02-25 17:30:50','إضافة منتج ص9 الكمية 234','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9524', '19', '95940', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '16654085.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9524', '7', '95940', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '17412366.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص9', productDescription = '', productCatId = '1', productBuyPrice = '410.00', productSellAllPrice = '410.00', productSellUnitPrice = '460.00', productSellHalfPrice = '420.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01582',type ='0', expireDate = '0' , dailyentryId = '9524',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '410',meanbuyprice_withDiscount = '410' , productbuypricereal = '410' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.44' , buypart_precentage = '12.2',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1582';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:00:52";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:30:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 17:30:52', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:05:25";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:35:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 17:35:25', '1', 'add', '156.210.99.74', '', '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 ('ص11','','1','370','370', '420','380', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '370','370','370','370','370','0','0','2.7','13.51','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص11', productDescription = '', productCatId = '1', productBuyPrice = '370', productSellAllPrice = '370', productSellUnitPrice = '420', productSellHalfPrice = '380', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01583',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.7' , buypart_precentage = '13.51',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1583';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1583', '1', '2024-02-25', '1', '0','0158301','370','380','420','370');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1583', '1', '183', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1583', '1', '183', '0', '1583', 'إضافة منتج', 'productController.php', '0', '183', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1583, 1,'2024-02-25 17:35:25',1)
                ON DUPLICATE KEY UPDATE productid = 1583, edited = 1, sysdate = '2024-02-25 17:35:25', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '67710', '67710', '2024-02-25', '1', '0', '0', '2024-02-25 17:35:25','إضافة منتج ص11 الكمية 183','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9525', '19', '67710', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '16721795.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9525', '7', '67710', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '17480076.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص11', productDescription = '', productCatId = '1', productBuyPrice = '370.00', productSellAllPrice = '370.00', productSellUnitPrice = '420.00', productSellHalfPrice = '380.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01583',type ='0', expireDate = '0' , dailyentryId = '9525',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.7' , buypart_precentage = '13.51',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1583';
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 ('ص17','','1','430','430', '480','440', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '430','430','430','430','430','0','0','2.33','11.63','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص17', productDescription = '', productCatId = '1', productBuyPrice = '430', productSellAllPrice = '430', productSellUnitPrice = '480', productSellHalfPrice = '440', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01584',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '430',meanbuyprice = '430',meanbuyprice_withDiscount = '430' , productbuypricereal = '430' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.33' , buypart_precentage = '11.63',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1584';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1584', '1', '2024-02-25', '1', '0','0158401','430','440','480','430');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1584', '1', '264', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '1', '264', '0', '1584', 'إضافة منتج', 'productController.php', '0', '264', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1584, 1,'2024-02-25 17:35:25',1)
                ON DUPLICATE KEY UPDATE productid = 1584, edited = 1, sysdate = '2024-02-25 17:35:25', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '113520', '113520', '2024-02-25', '1', '0', '0', '2024-02-25 17:35:25','إضافة منتج ص17 الكمية 264','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9526', '19', '113520', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '16835315.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9526', '7', '113520', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '17593596.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص17', productDescription = '', productCatId = '1', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '480.00', productSellHalfPrice = '440.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01584',type ='0', expireDate = '0' , dailyentryId = '9526',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '430',meanbuyprice = '430',meanbuyprice_withDiscount = '430' , productbuypricereal = '430' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.33' , buypart_precentage = '11.63',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1584';
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 ('ص19','','1','480','480', '530','490', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '480','480','480','480','480','0','0','2.08','10.42','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص19', productDescription = '', productCatId = '1', productBuyPrice = '480', productSellAllPrice = '480', productSellUnitPrice = '530', productSellHalfPrice = '490', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01585',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '480',lastbuyprice_withDiscount = '480',meanbuyprice = '480',meanbuyprice_withDiscount = '480' , productbuypricereal = '480' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.08' , buypart_precentage = '10.42',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1585';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1585', '1', '2024-02-25', '1', '0','0158501','480','490','530','480');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1585', '1', '205', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '1', '205', '0', '1585', 'إضافة منتج', 'productController.php', '0', '205', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1585, 1,'2024-02-25 17:35:25',1)
                ON DUPLICATE KEY UPDATE productid = 1585, edited = 1, sysdate = '2024-02-25 17:35:25', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '98400', '98400', '2024-02-25', '1', '0', '0', '2024-02-25 17:35:25','إضافة منتج ص19 الكمية 205','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9527', '19', '98400', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '16933715.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9527', '7', '98400', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '17691996.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص19', productDescription = '', productCatId = '1', productBuyPrice = '480.00', productSellAllPrice = '480.00', productSellUnitPrice = '530.00', productSellHalfPrice = '490.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01585',type ='0', expireDate = '0' , dailyentryId = '9527',isService = '0',isOptic = '0',lastbuyprice = '480',lastbuyprice_withDiscount = '480',meanbuyprice = '480',meanbuyprice_withDiscount = '480' , productbuypricereal = '480' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.08' , buypart_precentage = '10.42',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1585';
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 ('ص21','','1','360','360', '410','370', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '360','360','360','360','360','0','0','2.78','13.89','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص21', productDescription = '', productCatId = '1', productBuyPrice = '360', productSellAllPrice = '360', productSellUnitPrice = '410', productSellHalfPrice = '370', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01586',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '360',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.78' , buypart_precentage = '13.89',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1586';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1586', '1', '2024-02-25', '1', '0','0158601','360','370','410','360');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1586', '1', '186', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '1', '186', '0', '1586', 'إضافة منتج', 'productController.php', '0', '186', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1586, 1,'2024-02-25 17:35:25',1)
                ON DUPLICATE KEY UPDATE productid = 1586, edited = 1, sysdate = '2024-02-25 17:35:25', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '66960', '66960', '2024-02-25', '1', '0', '0', '2024-02-25 17:35:25','إضافة منتج ص21 الكمية 186','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9528', '19', '66960', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '17000675.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9528', '7', '66960', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '17758956.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص21', productDescription = '', productCatId = '1', productBuyPrice = '360.00', productSellAllPrice = '360.00', productSellUnitPrice = '410.00', productSellHalfPrice = '370.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01586',type ='0', expireDate = '0' , dailyentryId = '9528',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '360',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.78' , buypart_precentage = '13.89',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1586';
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 ('ص25','','1','430','430', '480','440', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '430','430','430','430','430','0','0','2.33','11.63','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص25', productDescription = '', productCatId = '1', productBuyPrice = '430', productSellAllPrice = '430', productSellUnitPrice = '480', productSellHalfPrice = '440', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01587',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '430',meanbuyprice = '430',meanbuyprice_withDiscount = '430' , productbuypricereal = '430' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.33' , buypart_precentage = '11.63',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1587';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1587', '1', '2024-02-25', '1', '0','0158701','430','440','480','430');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1587', '1', '186', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '1', '186', '0', '1587', 'إضافة منتج', 'productController.php', '0', '186', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1587, 1,'2024-02-25 17:35:25',1)
                ON DUPLICATE KEY UPDATE productid = 1587, edited = 1, sysdate = '2024-02-25 17:35:25', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '79980', '79980', '2024-02-25', '1', '0', '0', '2024-02-25 17:35:25','إضافة منتج ص25 الكمية 186','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9529', '19', '79980', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '17080655.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9529', '7', '79980', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '17838936.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص25', productDescription = '', productCatId = '1', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '480.00', productSellHalfPrice = '440.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01587',type ='0', expireDate = '0' , dailyentryId = '9529',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '430',meanbuyprice = '430',meanbuyprice_withDiscount = '430' , productbuypricereal = '430' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.33' , buypart_precentage = '11.63',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1587';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:05:27";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:35:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 17:35:27', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:05:45";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:35:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 17:35:45', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:05:51";
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:06:10";
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:10:38";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:40:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 17:40:39', '1', '', '156.210.99.74', '', '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 < "2024-02-25 14:10:39";
DROP PROCEDURE IF EXISTS clientInUse;;

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

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

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:10:42";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:40:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 17:40:42', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:13:55";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:43:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 17:43:55', '1', 'add', '156.210.99.74', '', '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 ('ص12','','1','410','410', '460','420', '2024-02-25', '0', '1', '0', '', '0', '0', '0', '0', '0', '410','410','410','410','410','0','0','2.44','12.2','.','0','0','0','0','0','','','0','0','0');
UPDATE product SET productName = 'ص12', productDescription = '', productCatId = '1', productBuyPrice = '410', productSellAllPrice = '410', productSellUnitPrice = '460', productSellHalfPrice = '420', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01588',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '410',meanbuyprice_withDiscount = '410' , productbuypricereal = '410' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.44' , buypart_precentage = '12.2',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1588';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice) VALUES ('1', '1588', '1', '2024-02-25', '1', '0','0158801','410','420','460','410');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1588', '1', '237', '1', '2024-02-25');
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '1', '237', '0', '1588', 'إضافة منتج', 'productController.php', '0', '237', '1', '2024-02-25','0','0');
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1588, 1,'2024-02-25 17:43:55',1)
                ON DUPLICATE KEY UPDATE productid = 1588, edited = 1, sysdate = '2024-02-25 17:43:55', userid = 1;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '97170', '97170', '2024-02-25', '1', '0', '0', '2024-02-25 17:43:55','إضافة منتج ص12 الكمية 237','1','0','0');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9530', '19', '97170', '','0');
UPDATE accountstree SET name = 'البضاعة (بضاعة أول المدة)', customName = 'البضاعة (بضاعة أول المدة)', parent = '6', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '0', mydate = '0000-00-00', itemtype2 = '1', theValue = '17177825.95', theOrder = '0', layingOrder = '121',reportid = '0' WHERE id = '19';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9530', '7', '97170', '','0');
UPDATE accountstree SET name = 'رأس المال', customName = 'رأس المال', parent = '25', itemtype = '1', itemfrom = '0', notes = '', del = '0', userid = '2', mydate = '2016-11-23', itemtype2 = '1', theValue = '17936106.75', theOrder = '0', layingOrder = '211',reportid = '0' WHERE id = '7';
UPDATE product SET productName = 'ص12', productDescription = '', productCatId = '1', productBuyPrice = '410.00', productSellAllPrice = '410.00', productSellUnitPrice = '460.00', productSellHalfPrice = '420.00', productDate = '2024-02-25', conditions = '0', userId = '1', limitamount = '0', parcode = '01588',type ='0', expireDate = '0' , dailyentryId = '9530',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '410',meanbuyprice_withDiscount = '410' , productbuypricereal = '410' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '2.44' , buypart_precentage = '12.2',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType =null , online = '' , updatebyuser = ''  WHERE productId = '1588';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:13:57";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:43:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 17:43:57', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:19:10";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:49:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 17:49:10', '1', 'add', '156.210.99.74', '', '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(1787,1,6,1579,39,'2024-02-25',1,0, '' ,0,0,0,0,0,'2024-02-25 17:49:10',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '185', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5616';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1579, 0, 0
                    , 430.00, -39, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2024-02-25*430.00," WHERE transferproductid = 7733;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '1', '39', '1', '7733', 'تحويل منتجات من المخزن', 'storemovementController.php', '224.00', '185', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1579', '6', '39', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1579, 0, 0
                    , 430.00, 39, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '6', '39', '0', '7733', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2024-02-25','0','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', '1584', '39', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '225', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5621';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1584, 0, 0
                    , 430.00, -39, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2024-02-25*430.00," WHERE transferproductid = 7734;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '1', '39', '1', '7734', 'تحويل منتجات من المخزن', 'storemovementController.php', '264.00', '225', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1584', '6', '39', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1584, 0, 0
                    , 430.00, 39, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '6', '39', '0', '7734', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2024-02-25','0','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', '1582', '39', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '195', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5619';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1582, 0, 0
                    , 410.00, -39, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2024-02-25*410.00," WHERE transferproductid = 7735;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '1', '39', '1', '7735', 'تحويل منتجات من المخزن', 'storemovementController.php', '234.00', '195', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1582', '6', '39', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1582, 0, 0
                    , 410.00, 39, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '6', '39', '0', '7735', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2024-02-25','0','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', '1581', '46', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '188', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5618';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1581, 0, 0
                    , 450.00, -46, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "46*2024-02-25*450.00," WHERE transferproductid = 7736;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '1', '46', '1', '7736', 'تحويل منتجات من المخزن', 'storemovementController.php', '234.00', '188', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1581', '6', '46', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1581, 0, 0
                    , 450.00, 46, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '6', '46', '0', '7736', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '46', '1', '2024-02-25','0','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', '1586', '31', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '155', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5623';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1586, 0, 0
                    , 360.00, -31, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2024-02-25*360.00," WHERE transferproductid = 7737;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '1', '31', '1', '7737', 'تحويل منتجات من المخزن', 'storemovementController.php', '186.00', '155', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1586', '6', '31', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1586, 0, 0
                    , 360.00, 31, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '6', '31', '0', '7737', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2024-02-25','0','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', '1585', '41', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '164', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5622';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1585, 0, 0
                    , 480.00, -41, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "41*2024-02-25*480.00," WHERE transferproductid = 7738;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '1', '41', '1', '7738', 'تحويل منتجات من المخزن', 'storemovementController.php', '205.00', '164', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1585', '6', '41', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1585, 0, 0
                    , 480.00, 41, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '6', '41', '0', '7738', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '41', '1', '2024-02-25','0','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', '1574', '31', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '125', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5611';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1574, 0, 0
                    , 420.00, -31, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2024-02-25*420.00," WHERE transferproductid = 7739;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '1', '31', '1', '7739', 'تحويل منتجات من المخزن', 'storemovementController.php', '156.00', '125', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1574', '6', '31', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1574, 0, 0
                    , 420.00, 31, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '6', '31', '0', '7739', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2024-02-25','0','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', '1575', '32', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '136', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5612';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1575, 0, 0
                    , 360.00, -32, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2024-02-25*360.00," WHERE transferproductid = 7740;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '1', '32', '1', '7740', 'تحويل منتجات من المخزن', 'storemovementController.php', '168.00', '136', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1575', '6', '32', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1575, 0, 0
                    , 360.00, 32, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '6', '32', '0', '7740', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2024-02-25','0','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', '1576', '40', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '186', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5613';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1576, 0, 0
                    , 420.00, -40, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*420.00," WHERE transferproductid = 7741;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '1', '40', '1', '7741', 'تحويل منتجات من المخزن', 'storemovementController.php', '226.00', '186', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1576', '6', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1576, 0, 0
                    , 420.00, 40, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '6', '40', '0', '7741', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1583', '40', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '143', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5620';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1583, 0, 0
                    , 370.00, -40, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*370.00," WHERE transferproductid = 7742;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1583', '1', '40', '1', '7742', 'تحويل منتجات من المخزن', 'storemovementController.php', '183.00', '143', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1583', '6', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1583, 0, 0
                    , 370.00, 40, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1583', '6', '40', '0', '7742', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1580', '40', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '188', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5617';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1580, 0, 0
                    , 430.00, -40, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*430.00," WHERE transferproductid = 7743;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '1', '40', '1', '7743', 'تحويل منتجات من المخزن', 'storemovementController.php', '228.00', '188', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1580', '6', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1580, 0, 0
                    , 430.00, 40, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '6', '40', '0', '7743', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1578', '43', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '173', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5615';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1578, 0, 0
                    , 440.00, -43, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "43*2024-02-25*440.00," WHERE transferproductid = 7744;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '1', '43', '1', '7744', 'تحويل منتجات من المخزن', 'storemovementController.php', '216.00', '173', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1578', '6', '43', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1578, 0, 0
                    , 440.00, 43, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '6', '43', '0', '7744', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '43', '1', '2024-02-25','0','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', '1577', '38', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:10',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '178', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5614';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1577, 0, 0
                    , 450.00, -38, 0, 0, 1, '2024-02-25 17:49:10')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:10' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "38*2024-02-25*450.00," WHERE transferproductid = 7745;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1577', '1', '38', '1', '7745', 'تحويل منتجات من المخزن', 'storemovementController.php', '216.00', '178', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1577', '6', '38', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1577, 0, 0
                    , 450.00, 38, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1577', '6', '38', '0', '7745', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '38', '1', '2024-02-25','0','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', '1559', '24', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5596';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1559, 0, 0
                    , 360.00, -24, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*360.00," WHERE transferproductid = 7746;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1559', '1', '24', '1', '7746', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '24', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1559', '6', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1559, 0, 0
                    , 360.00, 24, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1559', '6', '24', '0', '7746', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1562', '24', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5599';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1562, 0, 0
                    , 370.00, -24, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*370.00," WHERE transferproductid = 7747;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1562', '1', '24', '1', '7747', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '24', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1562', '6', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1562, 0, 0
                    , 370.00, 24, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1562', '6', '24', '0', '7747', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1560', '30', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5597';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1560, 0, 0
                    , 350.00, -30, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*350.00," WHERE transferproductid = 7748;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1560', '1', '30', '1', '7748', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1560', '6', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1560, 0, 0
                    , 350.00, 30, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1560', '6', '30', '0', '7748', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1588', '42', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '195', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5625';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1588, 0, 0
                    , 410.00, -42, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2024-02-25*410.00," WHERE transferproductid = 7749;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '1', '42', '1', '7749', 'تحويل منتجات من المخزن', 'storemovementController.php', '237.00', '195', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1588', '6', '42', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1588, 0, 0
                    , 410.00, 42, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '6', '42', '0', '7749', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2024-02-25','0','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', '1573', '24', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5610';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1573, 0, 0
                    , 410.00, -24, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*410.00," WHERE transferproductid = 7750;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1573', '1', '24', '1', '7750', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1573', '6', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1573, 0, 0
                    , 410.00, 24, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1573', '6', '24', '0', '7750', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1522', '27', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5559';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1522, 0, 0
                    , 340.00, -27, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2024-02-25*340.00," WHERE transferproductid = 7751;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1522', '1', '27', '1', '7751', 'تحويل منتجات من المخزن', 'storemovementController.php', '54.00', '27', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1522', '6', '27', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1522, 0, 0
                    , 340.00, 27, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1522', '6', '27', '0', '7751', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2024-02-25','0','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', '1524', '27', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5561';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1524, 0, 0
                    , 345.00, -27, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 345.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2024-02-25*345.00," WHERE transferproductid = 7752;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1524', '1', '27', '1', '7752', 'تحويل منتجات من المخزن', 'storemovementController.php', '54.00', '27', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1524', '6', '27', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1524, 0, 0
                    , 345.00, 27, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1524', '6', '27', '0', '7752', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2024-02-25','0','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', '1520', '30', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5557';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1520, 0, 0
                    , 350.00, -30, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*350.00," WHERE transferproductid = 7753;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1520', '1', '30', '1', '7753', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1520', '6', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1520, 0, 0
                    , 350.00, 30, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1520', '6', '30', '0', '7753', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1526', '16', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5563';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1526, 0, 0
                    , 360.00, -16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*360.00," WHERE transferproductid = 7754;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1526', '1', '16', '1', '7754', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '16', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1526', '6', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1526, 0, 0
                    , 360.00, 16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1526', '6', '16', '0', '7754', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1529', '24', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5566';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1529, 0, 0
                    , 395.00, -24, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 395.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*395.00," WHERE transferproductid = 7755;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1529', '1', '24', '1', '7755', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '24', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1529', '6', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1529, 0, 0
                    , 395.00, 24, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1529', '6', '24', '0', '7755', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1519', '20', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5556';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1519, 0, 0
                    , 210.00, -20, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2024-02-25*210.00," WHERE transferproductid = 7756;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '1', '20', '1', '7756', 'تحويل منتجات من المخزن', 'storemovementController.php', '72.00', '52', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1519', '6', '20', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1519, 0, 0
                    , 210.00, 20, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '6', '20', '0', '7756', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2024-02-25','0','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', '1587', '35', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '151', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5624';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1587, 0, 0
                    , 430.00, -35, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2024-02-25*430.00," WHERE transferproductid = 7757;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '1', '35', '1', '7757', 'تحويل منتجات من المخزن', 'storemovementController.php', '186.00', '151', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1587', '6', '35', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1587, 0, 0
                    , 430.00, 35, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '6', '35', '0', '7757', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2024-02-25','0','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', '1539', '20', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5576';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1539, 0, 0
                    , 430.00, -20, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2024-02-25*430.00," WHERE transferproductid = 7758;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1539', '1', '20', '1', '7758', 'تحويل منتجات من المخزن', 'storemovementController.php', '40.00', '20', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1539', '6', '20', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1539, 0, 0
                    , 430.00, 20, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1539', '6', '20', '0', '7758', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2024-02-25','0','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', '1538', '20', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5575';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1538, 0, 0
                    , 430.00, -20, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2024-02-25*430.00," WHERE transferproductid = 7759;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1538', '1', '20', '1', '7759', 'تحويل منتجات من المخزن', 'storemovementController.php', '40.00', '20', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1538', '6', '20', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1538, 0, 0
                    , 430.00, 20, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1538', '6', '20', '0', '7759', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2024-02-25','0','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', '1537', '22', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5574';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1537, 0, 0
                    , 430.00, -22, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2024-02-25*430.00," WHERE transferproductid = 7760;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1537', '1', '22', '1', '7760', 'تحويل منتجات من المخزن', 'storemovementController.php', '46.00', '24', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1537', '6', '22', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1537, 0, 0
                    , 430.00, 22, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1537', '6', '22', '0', '7760', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2024-02-25','0','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', '1536', '20', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5573';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1536, 0, 0
                    , 430.00, -20, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2024-02-25*430.00," WHERE transferproductid = 7761;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1536', '1', '20', '1', '7761', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '16', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1536', '6', '20', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1536, 0, 0
                    , 430.00, 20, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1536', '6', '20', '0', '7761', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2024-02-25','0','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', '1535', '20', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5572';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1535, 0, 0
                    , 430.00, -20, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2024-02-25*430.00," WHERE transferproductid = 7762;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1535', '1', '20', '1', '7762', 'تحويل منتجات من المخزن', 'storemovementController.php', '40.00', '20', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1535', '6', '20', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1535, 0, 0
                    , 430.00, 20, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1535', '6', '20', '0', '7762', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2024-02-25','0','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', '1534', '18', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5571';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1534, 0, 0
                    , 430.00, -18, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2024-02-25*430.00," WHERE transferproductid = 7763;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1534', '1', '18', '1', '7763', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '18', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1534', '6', '18', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1534, 0, 0
                    , 430.00, 18, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1534', '6', '18', '0', '7763', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2024-02-25','0','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', '1550', '16', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5587';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1550, 0, 0
                    , 320.00, -16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*320.00," WHERE transferproductid = 7764;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1550', '1', '16', '1', '7764', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '16', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1550', '6', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1550, 0, 0
                    , 320.00, 16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1550', '6', '16', '0', '7764', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1549', '16', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5586';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1549, 0, 0
                    , 320.00, -16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*320.00," WHERE transferproductid = 7765;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1549', '1', '16', '1', '7765', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '16', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1549', '6', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1549, 0, 0
                    , 320.00, 16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1549', '6', '16', '0', '7765', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1551', '16', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5588';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1551, 0, 0
                    , 330.00, -16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*330.00," WHERE transferproductid = 7766;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1551', '1', '16', '1', '7766', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '16', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1551', '6', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1551, 0, 0
                    , 330.00, 16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1551', '6', '16', '0', '7766', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1553', '16', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5590';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1553, 0, 0
                    , 330.00, -16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*330.00," WHERE transferproductid = 7767;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1553', '1', '16', '1', '7767', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '16', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1553', '6', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1553, 0, 0
                    , 330.00, 16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1553', '6', '16', '0', '7767', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1552', '16', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5589';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1552, 0, 0
                    , 330.00, -16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*330.00," WHERE transferproductid = 7768;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1552', '1', '16', '1', '7768', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '16', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1552', '6', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1552, 0, 0
                    , 330.00, 16, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1552', '6', '16', '0', '7768', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1540', '18', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5577';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1540, 0, 0
                    , 280.00, -18, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2024-02-25*280.00," WHERE transferproductid = 7769;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1540', '1', '18', '1', '7769', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1540', '6', '18', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1540, 0, 0
                    , 280.00, 18, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1540', '6', '18', '0', '7769', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2024-02-25','0','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', '1541', '24', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5578';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1541, 0, 0
                    , 280.00, -24, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*280.00," WHERE transferproductid = 7770;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1541', '1', '24', '1', '7770', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1541', '6', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1541, 0, 0
                    , 280.00, 24, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1541', '6', '24', '0', '7770', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1542', '18', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5579';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1542, 0, 0
                    , 340.00, -18, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2024-02-25*340.00," WHERE transferproductid = 7771;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1542', '1', '18', '1', '7771', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1542', '6', '18', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1542, 0, 0
                    , 340.00, 18, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1542', '6', '18', '0', '7771', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2024-02-25','0','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', '1566', '25', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5603';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1566, 0, 0
                    , 320.00, -25, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2024-02-25*320.00," WHERE transferproductid = 7772;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1566', '1', '25', '1', '7772', 'تحويل منتجات من المخزن', 'storemovementController.php', '58.00', '33', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1566', '6', '25', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1566, 0, 0
                    , 320.00, 25, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1566', '6', '25', '0', '7772', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2024-02-25','0','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', '1569', '34', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5606';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1569, 0, 0
                    , 320.00, -34, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2024-02-25*320.00," WHERE transferproductid = 7773;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1569', '1', '34', '1', '7773', 'تحويل منتجات من المخزن', 'storemovementController.php', '58.00', '24', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1569', '6', '34', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1569, 0, 0
                    , 320.00, 34, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1569', '6', '34', '0', '7773', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2024-02-25','0','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', '1554', '6', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5591';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1554, 0, 0
                    , 425.00, -6, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 425.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2024-02-25*425.00," WHERE transferproductid = 7774;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1554', '1', '6', '1', '7774', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '6', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1554', '6', '6', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1554, 0, 0
                    , 425.00, 6, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1554', '6', '6', '0', '7774', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2024-02-25','0','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', '1555', '10', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5592';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1555, 0, 0
                    , 425.00, -10, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 425.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2024-02-25*425.00," WHERE transferproductid = 7775;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1555', '1', '10', '1', '7775', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '10', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1555', '6', '10', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1555, 0, 0
                    , 425.00, 10, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1555', '6', '10', '0', '7775', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2024-02-25','0','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', '1556', '18', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5593';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1556, 0, 0
                    , 390.00, -18, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2024-02-25*390.00," WHERE transferproductid = 7776;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1556', '1', '18', '1', '7776', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '18', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1556', '6', '18', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1556, 0, 0
                    , 390.00, 18, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1556', '6', '18', '0', '7776', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2024-02-25','0','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', '1557', '12', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5594';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1557, 0, 0
                    , 440.00, -12, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2024-02-25*440.00," WHERE transferproductid = 7777;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1557', '1', '12', '1', '7777', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '12', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1557', '6', '12', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1557, 0, 0
                    , 440.00, 12, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1557', '6', '12', '0', '7777', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2024-02-25','0','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', '1558', '6', '2024-02-25', '1', '0','1787',null,null,'2024-02-25 17:49:11',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5595';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1558, 0, 0
                    , 430.00, -6, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2024-02-25*430.00," WHERE transferproductid = 7778;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1558', '1', '6', '1', '7778', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '6', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1558', '6', '6', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 6, 1558, 0, 0
                    , 430.00, 6, 0, 0, 1, '2024-02-25 17:49:11')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 17:49:11' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1558', '6', '6', '0', '7778', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2024-02-25','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:19:11";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 17:49:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 17:49:12', '1', 'editorder', '156.210.99.74', '', '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 < "2024-02-25 14:43:23";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:13:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 18:13:23', '1', '', '156.210.99.74', '', '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 < "2024-02-25 14:43:23";
DROP PROCEDURE IF EXISTS clientInUse;;

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

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

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:44:58";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:14:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:14:58', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:56:14";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:26:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:26:14', '1', 'add', '156.210.99.74', '', '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(1788,1,5,1544,24,'2024-02-25',1,0, '' ,0,0,0,0,0,'2024-02-25 18:26:14',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5581';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1544, 0, 0
                    , 280.00, -24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*280.00," WHERE transferproductid = 7779;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1544', '1', '24', '1', '7779', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1544', '5', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1544, 0, 0
                    , 280.00, 24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1544', '5', '24', '0', '7779', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1543', '24', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5580';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1543, 0, 0
                    , 240.00, -24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*240.00," WHERE transferproductid = 7780;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1543', '1', '24', '1', '7780', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '24', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1543', '5', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1543, 0, 0
                    , 240.00, 24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1543', '5', '24', '0', '7780', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1545', '18', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5582';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1545, 0, 0
                    , 280.00, -18, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2024-02-25*280.00," WHERE transferproductid = 7781;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1545', '1', '18', '1', '7781', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1545', '5', '18', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1545, 0, 0
                    , 280.00, 18, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1545', '5', '18', '0', '7781', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2024-02-25','0','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', '1546', '18', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5583';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1546, 0, 0
                    , 340.00, -18, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2024-02-25*340.00," WHERE transferproductid = 7782;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1546', '1', '18', '1', '7782', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1546', '5', '18', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1546, 0, 0
                    , 340.00, 18, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1546', '5', '18', '0', '7782', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2024-02-25','0','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', '1547', '18', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5584';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1547, 0, 0
                    , 320.00, -18, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2024-02-25*320.00," WHERE transferproductid = 7783;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1547', '1', '18', '1', '7783', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1547', '5', '18', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1547, 0, 0
                    , 320.00, 18, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1547', '5', '18', '0', '7783', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2024-02-25','0','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', '1567', '27', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5604';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1567, 0, 0
                    , 300.00, -27, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2024-02-25*300.00," WHERE transferproductid = 7784;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1567', '1', '27', '1', '7784', 'تحويل منتجات من المخزن', 'storemovementController.php', '54.00', '27', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1567', '5', '27', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1567, 0, 0
                    , 300.00, 27, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1567', '5', '27', '0', '7784', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2024-02-25','0','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', '1568', '36', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5605';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1568, 0, 0
                    , 320.00, -36, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2024-02-25*320.00," WHERE transferproductid = 7785;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1568', '1', '36', '1', '7785', 'تحويل منتجات من المخزن', 'storemovementController.php', '72.00', '36', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1568', '5', '36', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1568, 0, 0
                    , 320.00, 36, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1568', '5', '36', '0', '7785', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2024-02-25','0','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', '1565', '24', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5602';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1565, 0, 0
                    , 300.00, -24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*300.00," WHERE transferproductid = 7786;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1565', '1', '24', '1', '7786', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '24', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1565', '5', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1565, 0, 0
                    , 300.00, 24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1565', '5', '24', '0', '7786', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1554', '6', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5591';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1554, 0, 0
                    , 425.00, -6, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 425.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2024-02-25*425.00," WHERE transferproductid = 7787;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1554', '1', '6', '1', '7787', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1554', '5', '6', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1554, 0, 0
                    , 425.00, 6, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1554', '5', '6', '0', '7787', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2024-02-25','0','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', '1555', '10', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5592';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1555, 0, 0
                    , 425.00, -10, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 425.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2024-02-25*425.00," WHERE transferproductid = 7788;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1555', '1', '10', '1', '7788', 'تحويل منتجات من المخزن', 'storemovementController.php', '10.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1555', '5', '10', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1555, 0, 0
                    , 425.00, 10, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1555', '5', '10', '0', '7788', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2024-02-25','0','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', '1556', '18', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5593';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1556, 0, 0
                    , 390.00, -18, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2024-02-25*390.00," WHERE transferproductid = 7789;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1556', '1', '18', '1', '7789', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1556', '5', '18', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1556, 0, 0
                    , 390.00, 18, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1556', '5', '18', '0', '7789', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2024-02-25','0','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', '1557', '12', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5594';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1557, 0, 0
                    , 440.00, -12, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2024-02-25*440.00," WHERE transferproductid = 7790;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1557', '1', '12', '1', '7790', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1557', '5', '12', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1557, 0, 0
                    , 440.00, 12, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1557', '5', '12', '0', '7790', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2024-02-25','0','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', '1558', '6', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5595';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1558, 0, 0
                    , 430.00, -6, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2024-02-25*430.00," WHERE transferproductid = 7791;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1558', '1', '6', '1', '7791', 'تحويل منتجات من المخزن', 'storemovementController.php', '6.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1558', '5', '6', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1558, 0, 0
                    , 430.00, 6, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1558', '5', '6', '0', '7791', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2024-02-25','0','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', '1579', '40', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '145', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5616';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1579, 0, 0
                    , 430.00, -40, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*430.00," WHERE transferproductid = 7792;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '1', '40', '1', '7792', 'تحويل منتجات من المخزن', 'storemovementController.php', '185.00', '145', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1579', '5', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1579, 0, 0
                    , 430.00, 40, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '5', '40', '0', '7792', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1584', '44', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '181', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5621';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1584, 0, 0
                    , 430.00, -44, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "44*2024-02-25*430.00," WHERE transferproductid = 7793;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '1', '44', '1', '7793', 'تحويل منتجات من المخزن', 'storemovementController.php', '225.00', '181', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1584', '5', '44', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1584, 0, 0
                    , 430.00, 44, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '5', '44', '0', '7793', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '44', '1', '2024-02-25','0','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', '1582', '41', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '154', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5619';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1582, 0, 0
                    , 410.00, -41, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "41*2024-02-25*410.00," WHERE transferproductid = 7794;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '1', '41', '1', '7794', 'تحويل منتجات من المخزن', 'storemovementController.php', '195.00', '154', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1582', '5', '41', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1582, 0, 0
                    , 410.00, 41, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '5', '41', '0', '7794', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '41', '1', '2024-02-25','0','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', '1581', '46', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '142', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5618';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1581, 0, 0
                    , 450.00, -46, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "46*2024-02-25*450.00," WHERE transferproductid = 7795;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '1', '46', '1', '7795', 'تحويل منتجات من المخزن', 'storemovementController.php', '188.00', '142', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1581', '5', '46', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1581, 0, 0
                    , 450.00, 46, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '5', '46', '0', '7795', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '46', '1', '2024-02-25','0','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', '1586', '31', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '124', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5623';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1586, 0, 0
                    , 360.00, -31, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2024-02-25*360.00," WHERE transferproductid = 7796;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '1', '31', '1', '7796', 'تحويل منتجات من المخزن', 'storemovementController.php', '155.00', '124', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1586', '5', '31', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1586, 0, 0
                    , 360.00, 31, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '5', '31', '0', '7796', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2024-02-25','0','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', '1585', '41', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '123', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5622';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1585, 0, 0
                    , 480.00, -41, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "41*2024-02-25*480.00," WHERE transferproductid = 7797;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '1', '41', '1', '7797', 'تحويل منتجات من المخزن', 'storemovementController.php', '164.00', '123', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1585', '5', '41', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1585, 0, 0
                    , 480.00, 41, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '5', '41', '0', '7797', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '41', '1', '2024-02-25','0','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', '1574', '31', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '94', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5611';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1574, 0, 0
                    , 420.00, -31, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2024-02-25*420.00," WHERE transferproductid = 7798;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '1', '31', '1', '7798', 'تحويل منتجات من المخزن', 'storemovementController.php', '125.00', '94', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1574', '5', '31', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1574, 0, 0
                    , 420.00, 31, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '5', '31', '0', '7798', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2024-02-25','0','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', '1575', '32', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '104', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5612';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1575, 0, 0
                    , 360.00, -32, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2024-02-25*360.00," WHERE transferproductid = 7799;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '1', '32', '1', '7799', 'تحويل منتجات من المخزن', 'storemovementController.php', '136.00', '104', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1575', '5', '32', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1575, 0, 0
                    , 360.00, 32, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '5', '32', '0', '7799', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2024-02-25','0','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', '1576', '40', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '146', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5613';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1576, 0, 0
                    , 420.00, -40, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*420.00," WHERE transferproductid = 7800;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '1', '40', '1', '7800', 'تحويل منتجات من المخزن', 'storemovementController.php', '186.00', '146', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1576', '5', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1576, 0, 0
                    , 420.00, 40, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '5', '40', '0', '7800', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1583', '40', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '103', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5620';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1583, 0, 0
                    , 370.00, -40, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*370.00," WHERE transferproductid = 7801;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1583', '1', '40', '1', '7801', 'تحويل منتجات من المخزن', 'storemovementController.php', '143.00', '103', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1583', '5', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1583, 0, 0
                    , 370.00, 40, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1583', '5', '40', '0', '7801', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1580', '40', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '148', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5617';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1580, 0, 0
                    , 430.00, -40, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*430.00," WHERE transferproductid = 7802;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '1', '40', '1', '7802', 'تحويل منتجات من المخزن', 'storemovementController.php', '188.00', '148', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1580', '5', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1580, 0, 0
                    , 430.00, 40, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '5', '40', '0', '7802', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1578', '44', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '129', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5615';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1578, 0, 0
                    , 440.00, -44, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "44*2024-02-25*440.00," WHERE transferproductid = 7803;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '1', '44', '1', '7803', 'تحويل منتجات من المخزن', 'storemovementController.php', '173.00', '129', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1578', '5', '44', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1578, 0, 0
                    , 440.00, 44, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '5', '44', '0', '7803', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '44', '1', '2024-02-25','0','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', '1577', '45', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '133', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5614';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1577, 0, 0
                    , 450.00, -45, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2024-02-25*450.00," WHERE transferproductid = 7804;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1577', '1', '45', '1', '7804', 'تحويل منتجات من المخزن', 'storemovementController.php', '178.00', '133', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1577', '5', '45', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1577, 0, 0
                    , 450.00, 45, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1577', '5', '45', '0', '7804', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2024-02-25','0','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', '1560', '30', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5597';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1560, 0, 0
                    , 350.00, -30, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*350.00," WHERE transferproductid = 7805;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1560', '1', '30', '1', '7805', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1560', '5', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1560, 0, 0
                    , 350.00, 30, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1560', '5', '30', '0', '7805', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1559', '24', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5596';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1559, 0, 0
                    , 360.00, -24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*360.00," WHERE transferproductid = 7806;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1559', '1', '24', '1', '7806', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1559', '5', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1559, 0, 0
                    , 360.00, 24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1559', '5', '24', '0', '7806', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1562', '24', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5599';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1562, 0, 0
                    , 370.00, -24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*370.00," WHERE transferproductid = 7807;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1562', '1', '24', '1', '7807', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1562', '5', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1562, 0, 0
                    , 370.00, 24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1562', '5', '24', '0', '7807', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1588', '42', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '153', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5625';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1588, 0, 0
                    , 410.00, -42, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2024-02-25*410.00," WHERE transferproductid = 7808;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '1', '42', '1', '7808', 'تحويل منتجات من المخزن', 'storemovementController.php', '195.00', '153', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1588', '5', '42', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1588, 0, 0
                    , 410.00, 42, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '5', '42', '0', '7808', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2024-02-25','0','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', '1572', '24', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5609';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1572, 0, 0
                    , 400.00, -24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*400.00," WHERE transferproductid = 7809;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1572', '1', '24', '1', '7809', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1572', '5', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1572, 0, 0
                    , 400.00, 24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1572', '5', '24', '0', '7809', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1524', '27', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5561';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1524, 0, 0
                    , 345.00, -27, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 345.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2024-02-25*345.00," WHERE transferproductid = 7810;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1524', '1', '27', '1', '7810', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1524', '5', '27', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1524, 0, 0
                    , 345.00, 27, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1524', '5', '27', '0', '7810', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2024-02-25','0','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', '1522', '27', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5559';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1522, 0, 0
                    , 340.00, -27, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2024-02-25*340.00," WHERE transferproductid = 7811;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1522', '1', '27', '1', '7811', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1522', '5', '27', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1522, 0, 0
                    , 340.00, 27, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1522', '5', '27', '0', '7811', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2024-02-25','0','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', '1520', '30', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5557';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1520, 0, 0
                    , 350.00, -30, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*350.00," WHERE transferproductid = 7812;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1520', '1', '30', '1', '7812', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1520', '5', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1520, 0, 0
                    , 350.00, 30, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1520', '5', '30', '0', '7812', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1527', '16', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5564';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1527, 0, 0
                    , 360.00, -16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*360.00," WHERE transferproductid = 7813;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1527', '1', '16', '1', '7813', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '16', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1527', '5', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1527, 0, 0
                    , 360.00, 16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1527', '5', '16', '0', '7813', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1530', '24', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5567';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1530, 0, 0
                    , 380.00, -24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 380.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*380.00," WHERE transferproductid = 7814;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1530', '1', '24', '1', '7814', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '24', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1530', '5', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1530, 0, 0
                    , 380.00, 24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1530', '5', '24', '0', '7814', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1533', '24', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5570';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1533, 0, 0
                    , 395.00, -24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 395.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*395.00," WHERE transferproductid = 7815;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1533', '1', '24', '1', '7815', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '24', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1533', '5', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1533, 0, 0
                    , 395.00, 24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1533', '5', '24', '0', '7815', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1519', '20', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5556';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1519, 0, 0
                    , 210.00, -20, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2024-02-25*210.00," WHERE transferproductid = 7816;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '1', '20', '1', '7816', 'تحويل منتجات من المخزن', 'storemovementController.php', '52.00', '32', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1519', '5', '20', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1519, 0, 0
                    , 210.00, 20, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '5', '20', '0', '7816', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2024-02-25','0','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', '1587', '35', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '116', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5624';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1587, 0, 0
                    , 430.00, -35, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2024-02-25*430.00," WHERE transferproductid = 7817;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '1', '35', '1', '7817', 'تحويل منتجات من المخزن', 'storemovementController.php', '151.00', '116', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1587', '5', '35', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1587, 0, 0
                    , 430.00, 35, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '5', '35', '0', '7817', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2024-02-25','0','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', '1534', '18', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5571';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1534, 0, 0
                    , 430.00, -18, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2024-02-25*430.00," WHERE transferproductid = 7818;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1534', '1', '18', '1', '7818', 'تحويل منتجات من المخزن', 'storemovementController.php', '18.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1534', '5', '18', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1534, 0, 0
                    , 430.00, 18, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1534', '5', '18', '0', '7818', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2024-02-25','0','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', '1535', '20', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5572';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1535, 0, 0
                    , 430.00, -20, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2024-02-25*430.00," WHERE transferproductid = 7819;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1535', '1', '20', '1', '7819', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1535', '5', '20', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1535, 0, 0
                    , 430.00, 20, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1535', '5', '20', '0', '7819', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2024-02-25','0','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', '1536', '16', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5573';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1536, 0, 0
                    , 430.00, -16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*430.00," WHERE transferproductid = 7820;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1536', '1', '16', '1', '7820', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1536', '5', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1536, 0, 0
                    , 430.00, 16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1536', '5', '16', '0', '7820', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1537', '24', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5574';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1537, 0, 0
                    , 430.00, -24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*430.00," WHERE transferproductid = 7821;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1537', '1', '24', '1', '7821', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1537', '5', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1537, 0, 0
                    , 430.00, 24, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1537', '5', '24', '0', '7821', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1538', '20', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5575';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1538, 0, 0
                    , 430.00, -20, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2024-02-25*430.00," WHERE transferproductid = 7822;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1538', '1', '20', '1', '7822', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1538', '5', '20', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1538, 0, 0
                    , 430.00, 20, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1538', '5', '20', '0', '7822', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2024-02-25','0','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', '1539', '20', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5576';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1539, 0, 0
                    , 430.00, -20, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2024-02-25*430.00," WHERE transferproductid = 7823;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1539', '1', '20', '1', '7823', 'تحويل منتجات من المخزن', 'storemovementController.php', '20.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1539', '5', '20', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1539, 0, 0
                    , 430.00, 20, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1539', '5', '20', '0', '7823', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2024-02-25','0','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', '1550', '16', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5587';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1550, 0, 0
                    , 320.00, -16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*320.00," WHERE transferproductid = 7824;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1550', '1', '16', '1', '7824', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1550', '5', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1550, 0, 0
                    , 320.00, 16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1550', '5', '16', '0', '7824', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1549', '16', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5586';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1549, 0, 0
                    , 320.00, -16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*320.00," WHERE transferproductid = 7825;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1549', '1', '16', '1', '7825', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1549', '5', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1549, 0, 0
                    , 320.00, 16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1549', '5', '16', '0', '7825', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1553', '16', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5590';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1553, 0, 0
                    , 330.00, -16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*330.00," WHERE transferproductid = 7826;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1553', '1', '16', '1', '7826', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1553', '5', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1553, 0, 0
                    , 330.00, 16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1553', '5', '16', '0', '7826', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1551', '16', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5588';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1551, 0, 0
                    , 330.00, -16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*330.00," WHERE transferproductid = 7827;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1551', '1', '16', '1', '7827', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1551', '5', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1551, 0, 0
                    , 330.00, 16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1551', '5', '16', '0', '7827', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1552', '16', '2024-02-25', '1', '0','1788',null,null,'2024-02-25 18:26:14',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5589';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1552, 0, 0
                    , 330.00, -16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*330.00," WHERE transferproductid = 7828;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1552', '1', '16', '1', '7828', 'تحويل منتجات من المخزن', 'storemovementController.php', '16.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1552', '5', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 5, 1552, 0, 0
                    , 330.00, 16, 0, 0, 1, '2024-02-25 18:26:14')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 18:26:14' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1552', '5', '16', '0', '7828', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 14:56:15";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:26:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:26:15', '1', 'editshow', '156.210.99.74', '', '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 < "2024-02-25 15:00:49";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:30:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 18:30:49', '1', '', '156.210.99.74', '', '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 < "2024-02-25 15:00:49";
DROP PROCEDURE IF EXISTS clientInUse;;

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

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

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:00:52";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:30:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:30:52', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:00:55";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:30:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:30:55', '1', 'show', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:00:58";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:30:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('productController.php', '2024-02-25 18:30:58', '1', 'showbarcodestoremovement', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:01:16";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:31:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:31:16', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:01:21";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:31:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:31:21', '1', 'show', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:01:25";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:31:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:31:25', '1', 'editorder', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:12:56";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:42:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:42:56', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:12:58";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:42:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:42:58', '1', 'show', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:13:02";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:43:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:43:02', '1', 'editorder', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:25:45";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:55:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:55:45', '1', 'editorder', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:25:56";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:55:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:55:56', '1', '', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:25:59";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:55:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:55:59', '1', 'show', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:26:03";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 18:56:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 18:56:03', '1', 'editorder', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 15:43:26";
UPDATE user SET loginip = "156.210.99.74", lastactivetime = "2024-02-25 19:13:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 19:13:26', '1', 'addsellBill', '156.210.99.74', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:07:34";
UPDATE user SET loginip = "156.210.21.118", lastactivetime = "2024-02-25 19:37:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 19:37:34', '1', '', '156.210.21.118', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:43:37";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:13:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:13:37', '1', 'add', '156.210.109.46', '', '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(1789,1,7,1576,40,'2024-02-25',1,0, '' ,0,0,0,0,0,'2024-02-25 20:13:37',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '106', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5613';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1576, 0, 0
                    , 420.00, -40, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*420.00," WHERE transferproductid = 7829;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '1', '40', '1', '7829', 'تحويل منتجات من المخزن', 'storemovementController.php', '146.00', '106', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1576', '7', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1576, 0, 0
                    , 420.00, 40, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '7', '40', '0', '7829', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1578', '39', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5615';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1578, 0, 0
                    , 440.00, -39, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2024-02-25*440.00," WHERE transferproductid = 7830;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '1', '39', '1', '7830', 'تحويل منتجات من المخزن', 'storemovementController.php', '129.00', '90', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1578', '7', '39', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1578, 0, 0
                    , 440.00, 39, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '7', '39', '0', '7830', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2024-02-25','0','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', '1580', '40', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '108', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5617';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1580, 0, 0
                    , 430.00, -40, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*430.00," WHERE transferproductid = 7831;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '1', '40', '1', '7831', 'تحويل منتجات من المخزن', 'storemovementController.php', '148.00', '108', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1580', '7', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1580, 0, 0
                    , 430.00, 40, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '7', '40', '0', '7831', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1575', '32', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5612';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1575, 0, 0
                    , 360.00, -32, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2024-02-25*360.00," WHERE transferproductid = 7832;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '1', '32', '1', '7832', 'تحويل منتجات من المخزن', 'storemovementController.php', '104.00', '72', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1575', '7', '32', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1575, 0, 0
                    , 360.00, 32, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '7', '32', '0', '7832', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2024-02-25','0','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', '1574', '31', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '63', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5611';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1574, 0, 0
                    , 420.00, -31, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2024-02-25*420.00," WHERE transferproductid = 7833;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '1', '31', '1', '7833', 'تحويل منتجات من المخزن', 'storemovementController.php', '94.00', '63', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1574', '7', '31', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1574, 0, 0
                    , 420.00, 31, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '7', '31', '0', '7833', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2024-02-25','0','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', '1582', '40', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '114', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5619';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1582, 0, 0
                    , 410.00, -40, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*410.00," WHERE transferproductid = 7834;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '1', '40', '1', '7834', 'تحويل منتجات من المخزن', 'storemovementController.php', '154.00', '114', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1582', '7', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1582, 0, 0
                    , 410.00, 40, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '7', '40', '0', '7834', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1581', '46', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5618';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1581, 0, 0
                    , 450.00, -46, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "46*2024-02-25*450.00," WHERE transferproductid = 7835;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '1', '46', '1', '7835', 'تحويل منتجات من المخزن', 'storemovementController.php', '142.00', '96', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1581', '7', '46', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1581, 0, 0
                    , 450.00, 46, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '7', '46', '0', '7835', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '46', '1', '2024-02-25','0','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', '1584', '44', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '137', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5621';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1584, 0, 0
                    , 430.00, -44, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "44*2024-02-25*430.00," WHERE transferproductid = 7836;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '1', '44', '1', '7836', 'تحويل منتجات من المخزن', 'storemovementController.php', '181.00', '137', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1584', '7', '44', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1584, 0, 0
                    , 430.00, 44, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '7', '44', '0', '7836', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '44', '1', '2024-02-25','0','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', '1579', '40', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5616';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1579, 0, 0
                    , 430.00, -40, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*430.00," WHERE transferproductid = 7837;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '1', '40', '1', '7837', 'تحويل منتجات من المخزن', 'storemovementController.php', '145.00', '105', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1579', '7', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1579, 0, 0
                    , 430.00, 40, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '7', '40', '0', '7837', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1586', '32', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '92', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5623';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1586, 0, 0
                    , 360.00, -32, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2024-02-25*360.00," WHERE transferproductid = 7838;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '1', '32', '1', '7838', 'تحويل منتجات من المخزن', 'storemovementController.php', '124.00', '92', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1586', '7', '32', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1586, 0, 0
                    , 360.00, 32, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '7', '32', '0', '7838', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2024-02-25','0','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', '1561', '30', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5598';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1561, 0, 0
                    , 350.00, -30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*350.00," WHERE transferproductid = 7839;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1561', '1', '30', '1', '7839', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1561', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1561, 0, 0
                    , 350.00, 30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1561', '7', '30', '0', '7839', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1564', '30', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5601';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1564, 0, 0
                    , 350.00, -30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*350.00," WHERE transferproductid = 7840;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1564', '1', '30', '1', '7840', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1564', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1564, 0, 0
                    , 350.00, 30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1564', '7', '30', '0', '7840', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1563', '30', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5600';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1563, 0, 0
                    , 370.00, -30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*370.00," WHERE transferproductid = 7841;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1563', '1', '30', '1', '7841', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1563', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1563, 0, 0
                    , 370.00, 30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1563', '7', '30', '0', '7841', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1571', '24', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5608';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1571, 0, 0
                    , 400.00, -24, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*400.00," WHERE transferproductid = 7842;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1571', '1', '24', '1', '7842', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1571', '7', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1571, 0, 0
                    , 400.00, 24, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1571', '7', '24', '0', '7842', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1523', '30', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5560';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1523, 0, 0
                    , 340.00, -30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*340.00," WHERE transferproductid = 7843;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1523', '1', '30', '1', '7843', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1523', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1523, 0, 0
                    , 340.00, 30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1523', '7', '30', '0', '7843', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1521', '30', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5558';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1521, 0, 0
                    , 330.00, -30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*330.00," WHERE transferproductid = 7844;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1521', '1', '30', '1', '7844', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1521', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1521, 0, 0
                    , 330.00, 30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1521', '7', '30', '0', '7844', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1525', '30', '2024-02-25', '1', '0','1789',null,null,'2024-02-25 20:13:37',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5562';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1525, 0, 0
                    , 330.00, -30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*330.00," WHERE transferproductid = 7845;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1525', '1', '30', '1', '7845', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1525', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1525, 0, 0
                    , 330.00, 30, 0, 0, 1, '2024-02-25 20:13:37')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:13:37' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1525', '7', '30', '0', '7845', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','0');
ROLLBACK;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:43:37";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:13:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:13:38', '1', 'error', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:43:39";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:13:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:13:39', '1', 'show', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:43:44";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:13:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:13:44', '1', 'editorder', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:45:00";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:15:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:15:00', '1', '', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:45:05";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:15:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:15:05', '1', 'show', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:45:10";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:15:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:15:10', '1', 'editorder', '156.210.109.46', '', '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;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:45:32";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:15:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 20:15:33', '1', '', '156.210.109.46', '', '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 < "2024-02-25 16:45: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 < "2024-02-25 16:45:36";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:15:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:15:36', '1', '', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:45:42";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:15:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:15:42', '1', 'show', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:45:45";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:15:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:15:45', '1', 'editshowstyle2', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:45:53";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:15:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:15:53', '1', '', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:45:55";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:15:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:15:55', '1', 'show', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:46:08";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:16:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:16:08', '1', '', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:46:11";
UPDATE user SET loginip = "156.210.109.46", lastactivetime = "2024-02-25 20:16:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:16:11', '1', '', '156.210.109.46', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:48:43";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:18:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:18:43', '1', 'editorder', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:48:49";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:18:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:18:49', '1', '', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:49:00";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:19:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:19:00', '1', 'show', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:49:03";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:19:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:19:03', '1', 'tempdelete2', '156.210.11.26', '', 'DESKTOP');
BEGIN;
UPDATE storemovement SET  transferproductdate = '2024-02-25', userid = '1', conditions = '1' WHERE transferproductid = '7829';
UPDATE storedetail SET  productquantity = '-40', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = null;
INSERT INTO onlinetempstoredetail (storeid, productid, sizeid, colorid, quantity, edited, sysdate, userid)
                VALUES (, , 0, 0, -40,1,'2024-02-25 20:19:04',1)
                ON DUPLICATE KEY UPDATE quantity = quantity+-40, edited = 1, sysdate = '2024-02-25 20:19:04', userid = 1;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:49:05";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:19:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:19:05', '1', 'show', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:49:12";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:19:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:19:13', '1', '', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:53:58";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:23:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:23:58', '1', 'add', '156.210.11.26', '', '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(1790,1,7,1576,40,'2024-02-25',1,0, '' ,0,0,0,0,0,'2024-02-25 20:23:58',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '106', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5613';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1576, 0, 0
                    , 420.00, -40, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*420.00," WHERE transferproductid = 7846;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '1', '40', '1', '7846', 'تحويل منتجات من المخزن', 'storemovementController.php', '146.00', '106', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1576', '7', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1576, 0, 0
                    , 420.00, 40, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '7', '40', '0', '7846', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1578', '39', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5615';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1578, 0, 0
                    , 440.00, -39, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2024-02-25*440.00," WHERE transferproductid = 7847;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '1', '39', '1', '7847', 'تحويل منتجات من المخزن', 'storemovementController.php', '129.00', '90', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1578', '7', '39', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1578, 0, 0
                    , 440.00, 39, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '7', '39', '0', '7847', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2024-02-25','0','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', '1580', '40', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '108', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5617';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1580, 0, 0
                    , 430.00, -40, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*430.00," WHERE transferproductid = 7848;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '1', '40', '1', '7848', 'تحويل منتجات من المخزن', 'storemovementController.php', '148.00', '108', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1580', '7', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1580, 0, 0
                    , 430.00, 40, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '7', '40', '0', '7848', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1575', '32', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5612';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1575, 0, 0
                    , 360.00, -32, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2024-02-25*360.00," WHERE transferproductid = 7849;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '1', '32', '1', '7849', 'تحويل منتجات من المخزن', 'storemovementController.php', '104.00', '72', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1575', '7', '32', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1575, 0, 0
                    , 360.00, 32, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '7', '32', '0', '7849', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2024-02-25','0','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', '1574', '31', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '63', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5611';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1574, 0, 0
                    , 420.00, -31, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2024-02-25*420.00," WHERE transferproductid = 7850;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '1', '31', '1', '7850', 'تحويل منتجات من المخزن', 'storemovementController.php', '94.00', '63', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1574', '7', '31', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1574, 0, 0
                    , 420.00, 31, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '7', '31', '0', '7850', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2024-02-25','0','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', '1582', '40', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '114', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5619';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1582, 0, 0
                    , 410.00, -40, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*410.00," WHERE transferproductid = 7851;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '1', '40', '1', '7851', 'تحويل منتجات من المخزن', 'storemovementController.php', '154.00', '114', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1582', '7', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1582, 0, 0
                    , 410.00, 40, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '7', '40', '0', '7851', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1581', '46', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5618';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1581, 0, 0
                    , 450.00, -46, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "46*2024-02-25*450.00," WHERE transferproductid = 7852;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '1', '46', '1', '7852', 'تحويل منتجات من المخزن', 'storemovementController.php', '142.00', '96', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1581', '7', '46', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1581, 0, 0
                    , 450.00, 46, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '7', '46', '0', '7852', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '46', '1', '2024-02-25','0','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', '1584', '44', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '137', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5621';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1584, 0, 0
                    , 430.00, -44, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "44*2024-02-25*430.00," WHERE transferproductid = 7853;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '1', '44', '1', '7853', 'تحويل منتجات من المخزن', 'storemovementController.php', '181.00', '137', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1584', '7', '44', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1584, 0, 0
                    , 430.00, 44, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '7', '44', '0', '7853', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '44', '1', '2024-02-25','0','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', '1579', '40', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5616';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1579, 0, 0
                    , 430.00, -40, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*430.00," WHERE transferproductid = 7854;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '1', '40', '1', '7854', 'تحويل منتجات من المخزن', 'storemovementController.php', '145.00', '105', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1579', '7', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1579, 0, 0
                    , 430.00, 40, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '7', '40', '0', '7854', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1586', '21', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '103', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5623';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1586, 0, 0
                    , 360.00, -21, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2024-02-25*360.00," WHERE transferproductid = 7855;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '1', '21', '1', '7855', 'تحويل منتجات من المخزن', 'storemovementController.php', '124.00', '103', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1586', '7', '21', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1586, 0, 0
                    , 360.00, 21, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '7', '21', '0', '7855', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2024-02-25','0','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', '1561', '30', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5598';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1561, 0, 0
                    , 350.00, -30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*350.00," WHERE transferproductid = 7856;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1561', '1', '30', '1', '7856', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1561', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1561, 0, 0
                    , 350.00, 30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1561', '7', '30', '0', '7856', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1564', '30', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5601';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1564, 0, 0
                    , 350.00, -30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*350.00," WHERE transferproductid = 7857;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1564', '1', '30', '1', '7857', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1564', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1564, 0, 0
                    , 350.00, 30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1564', '7', '30', '0', '7857', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1563', '30', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5600';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1563, 0, 0
                    , 370.00, -30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*370.00," WHERE transferproductid = 7858;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1563', '1', '30', '1', '7858', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1563', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1563, 0, 0
                    , 370.00, 30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1563', '7', '30', '0', '7858', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1571', '24', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5608';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1571, 0, 0
                    , 400.00, -24, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*400.00," WHERE transferproductid = 7859;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1571', '1', '24', '1', '7859', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1571', '7', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1571, 0, 0
                    , 400.00, 24, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1571', '7', '24', '0', '7859', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1523', '30', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5560';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1523, 0, 0
                    , 340.00, -30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*340.00," WHERE transferproductid = 7860;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1523', '1', '30', '1', '7860', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1523', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1523, 0, 0
                    , 340.00, 30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1523', '7', '30', '0', '7860', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1521', '30', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5558';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1521, 0, 0
                    , 330.00, -30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*330.00," WHERE transferproductid = 7861;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1521', '1', '30', '1', '7861', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1521', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1521, 0, 0
                    , 330.00, 30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1521', '7', '30', '0', '7861', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1525', '30', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5562';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1525, 0, 0
                    , 330.00, -30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*330.00," WHERE transferproductid = 7862;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1525', '1', '30', '1', '7862', 'تحويل منتجات من المخزن', 'storemovementController.php', '60.00', '30', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1525', '7', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1525, 0, 0
                    , 330.00, 30, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1525', '7', '30', '0', '7862', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1585', '42', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '81', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5622';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1585, 0, 0
                    , 480.00, -42, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2024-02-25*480.00," WHERE transferproductid = 7863;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '1', '42', '1', '7863', 'تحويل منتجات من المخزن', 'storemovementController.php', '123.00', '81', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1585', '7', '42', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1585, 0, 0
                    , 480.00, 42, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '7', '42', '0', '7863', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2024-02-25','0','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', '1588', '37', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '116', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5625';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1588, 0, 0
                    , 410.00, -37, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "37*2024-02-25*410.00," WHERE transferproductid = 7864;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '1', '37', '1', '7864', 'تحويل منتجات من المخزن', 'storemovementController.php', '153.00', '116', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1588', '7', '37', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1588, 0, 0
                    , 410.00, 37, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '7', '37', '0', '7864', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '37', '1', '2024-02-25','0','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', '1519', '20', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5556';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1519, 0, 0
                    , 210.00, -20, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2024-02-25*210.00," WHERE transferproductid = 7865;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '1', '20', '1', '7865', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '12', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1519', '7', '20', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1519, 0, 0
                    , 210.00, 20, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '7', '20', '0', '7865', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2024-02-25','0','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', '1532', '24', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5569';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1532, 0, 0
                    , 395.00, -24, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 395.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*395.00," WHERE transferproductid = 7866;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1532', '1', '24', '1', '7866', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '24', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1532', '7', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1532, 0, 0
                    , 395.00, 24, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1532', '7', '24', '0', '7866', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1567', '27', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5604';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1567, 0, 0
                    , 300.00, -27, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2024-02-25*300.00," WHERE transferproductid = 7867;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1567', '1', '27', '1', '7867', 'تحويل منتجات من المخزن', 'storemovementController.php', '27.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1567', '7', '27', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1567, 0, 0
                    , 300.00, 27, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1567', '7', '27', '0', '7867', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2024-02-25','0','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', '1565', '24', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5602';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1565, 0, 0
                    , 300.00, -24, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*300.00," WHERE transferproductid = 7868;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1565', '1', '24', '1', '7868', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1565', '7', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1565, 0, 0
                    , 300.00, 24, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1565', '7', '24', '0', '7868', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1587', '39', '2024-02-25', '1', '0','1790',null,null,'2024-02-25 20:23:58',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '77', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5624';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1587, 0, 0
                    , 430.00, -39, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2024-02-25*430.00," WHERE transferproductid = 7869;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '1', '39', '1', '7869', 'تحويل منتجات من المخزن', 'storemovementController.php', '116.00', '77', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1587', '7', '39', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 7, 1587, 0, 0
                    , 430.00, 39, 0, 0, 1, '2024-02-25 20:23:58')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:23:58' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '7', '39', '0', '7869', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2024-02-25','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:53:59";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:23:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:23:59', '1', 'editshow', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:56:32";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:26:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:26:32', '1', 'show', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 16:56:35";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:26:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:26:35', '1', 'editshowstyle2', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:01:53";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:31:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:31:53', '1', '', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:14:00";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:44:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:44:00', '1', 'add', '156.210.11.26', '', '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(1791,1,8,1574,31,'2024-02-25',1,0, '' ,0,0,0,0,0,'2024-02-25 20:44:00',0,'',@id,@optnum);
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5611';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1574, 0, 0
                    , 420.00, -31, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "31*2024-02-25*420.00," WHERE transferproductid = 7870;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '1', '31', '1', '7870', 'تحويل منتجات من المخزن', 'storemovementController.php', '63.00', '32', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1574', '8', '31', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1574, 0, 0
                    , 420.00, 31, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+31, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '8', '31', '0', '7870', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '31', '1', '2024-02-25','0','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', '1578', '44', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '46', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5615';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1578, 0, 0
                    , 440.00, -44, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "44*2024-02-25*440.00," WHERE transferproductid = 7871;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '1', '44', '1', '7871', 'تحويل منتجات من المخزن', 'storemovementController.php', '90.00', '46', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1578', '8', '44', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1578, 0, 0
                    , 440.00, 44, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '8', '44', '0', '7871', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '44', '1', '2024-02-25','0','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', '1580', '40', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '68', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5617';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1580, 0, 0
                    , 430.00, -40, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*430.00," WHERE transferproductid = 7872;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '1', '40', '1', '7872', 'تحويل منتجات من المخزن', 'storemovementController.php', '108.00', '68', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1580', '8', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1580, 0, 0
                    , 430.00, 40, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '8', '40', '0', '7872', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1576', '40', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '66', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5613';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1576, 0, 0
                    , 420.00, -40, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*420.00," WHERE transferproductid = 7873;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '1', '40', '1', '7873', 'تحويل منتجات من المخزن', 'storemovementController.php', '106.00', '66', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1576', '8', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1576, 0, 0
                    , 420.00, 40, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '8', '40', '0', '7873', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1575', '35', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5612';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1575, 0, 0
                    , 360.00, -35, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2024-02-25*360.00," WHERE transferproductid = 7874;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '1', '35', '1', '7874', 'تحويل منتجات من المخزن', 'storemovementController.php', '72.00', '37', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1575', '8', '35', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1575, 0, 0
                    , 360.00, 35, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '8', '35', '0', '7874', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2024-02-25','0','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', '1581', '47', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '49', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5618';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1581, 0, 0
                    , 450.00, -47, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-47, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "47*2024-02-25*450.00," WHERE transferproductid = 7875;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '1', '47', '1', '7875', 'تحويل منتجات من المخزن', 'storemovementController.php', '96.00', '49', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1581', '8', '47', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1581, 0, 0
                    , 450.00, 47, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+47, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '8', '47', '0', '7875', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '47', '1', '2024-02-25','0','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', '1584', '44', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '93', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5621';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1584, 0, 0
                    , 430.00, -44, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "44*2024-02-25*430.00," WHERE transferproductid = 7876;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '1', '44', '1', '7876', 'تحويل منتجات من المخزن', 'storemovementController.php', '137.00', '93', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1584', '8', '44', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1584, 0, 0
                    , 430.00, 44, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '8', '44', '0', '7876', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '44', '1', '2024-02-25','0','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', '1582', '34', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '80', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5619';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1582, 0, 0
                    , 410.00, -34, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2024-02-25*410.00," WHERE transferproductid = 7877;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '1', '34', '1', '7877', 'تحويل منتجات من المخزن', 'storemovementController.php', '114.00', '80', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1582', '8', '34', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1582, 0, 0
                    , 410.00, 34, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '8', '34', '0', '7877', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2024-02-25','0','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', '1575', '33', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5612';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1575, 0, 0
                    , 360.00, -33, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2024-02-25*360.00," WHERE transferproductid = 7878;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '1', '33', '1', '7878', 'تحويل منتجات من المخزن', 'storemovementController.php', '37.00', '4', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '68', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5767';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1575, 0, 0
                    , 360.00, 33, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '8', '33', '0', '7878', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '35.00', '68', '1', '2024-02-25','0','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', '1579', '40', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5616';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1579, 0, 0
                    , 430.00, -40, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*430.00," WHERE transferproductid = 7879;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '1', '40', '1', '7879', 'تحويل منتجات من المخزن', 'storemovementController.php', '105.00', '65', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1579', '8', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1579, 0, 0
                    , 430.00, 40, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '8', '40', '0', '7879', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1569', '24', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5606';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1569, 0, 0
                    , 320.00, -24, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*320.00," WHERE transferproductid = 7880;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1569', '1', '24', '1', '7880', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1569', '8', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1569, 0, 0
                    , 320.00, 24, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1569', '8', '24', '0', '7880', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1566', '33', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5603';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1566, 0, 0
                    , 320.00, -33, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2024-02-25*320.00," WHERE transferproductid = 7881;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1566', '1', '33', '1', '7881', 'تحويل منتجات من المخزن', 'storemovementController.php', '33.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1566', '8', '33', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1566, 0, 0
                    , 320.00, 33, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1566', '8', '33', '0', '7881', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2024-02-25','0','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', '1568', '36', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5605';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1568, 0, 0
                    , 320.00, -36, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2024-02-25*320.00," WHERE transferproductid = 7882;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1568', '1', '36', '1', '7882', 'تحويل منتجات من المخزن', 'storemovementController.php', '36.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1568', '8', '36', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1568, 0, 0
                    , 320.00, 36, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1568', '8', '36', '0', '7882', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2024-02-25','0','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', '1587', '40', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5624';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1587, 0, 0
                    , 430.00, -40, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2024-02-25*430.00," WHERE transferproductid = 7883;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '1', '40', '1', '7883', 'تحويل منتجات من المخزن', 'storemovementController.php', '77.00', '37', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1587', '8', '40', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1587, 0, 0
                    , 430.00, 40, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '8', '40', '0', '7883', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2024-02-25','0','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', '1561', '30', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5598';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1561, 0, 0
                    , 350.00, -30, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*350.00," WHERE transferproductid = 7884;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1561', '1', '30', '1', '7884', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1561', '8', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1561, 0, 0
                    , 350.00, 30, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1561', '8', '30', '0', '7884', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1564', '30', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5601';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1564, 0, 0
                    , 350.00, -30, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*350.00," WHERE transferproductid = 7885;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1564', '1', '30', '1', '7885', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1564', '8', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1564, 0, 0
                    , 350.00, 30, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1564', '8', '30', '0', '7885', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1563', '30', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5600';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1563, 0, 0
                    , 370.00, -30, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*370.00," WHERE transferproductid = 7886;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1563', '1', '30', '1', '7886', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1563', '8', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1563, 0, 0
                    , 370.00, 30, 0, 0, 1, '2024-02-25 20:44:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:00' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1563', '8', '30', '0', '7886', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1570', '24', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:00',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5607';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1570, 0, 0
                    , 410.00, -24, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*410.00," WHERE transferproductid = 7887;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1570', '1', '24', '1', '7887', 'تحويل منتجات من المخزن', 'storemovementController.php', '24.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1570', '8', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1570, 0, 0
                    , 410.00, 24, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1570', '8', '24', '0', '7887', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1525', '30', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:01',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5562';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1525, 0, 0
                    , 330.00, -30, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*330.00," WHERE transferproductid = 7888;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1525', '1', '30', '1', '7888', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1525', '8', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1525, 0, 0
                    , 330.00, 30, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1525', '8', '30', '0', '7888', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1521', '30', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:01',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5558';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1521, 0, 0
                    , 330.00, -30, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*330.00," WHERE transferproductid = 7889;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1521', '1', '30', '1', '7889', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1521', '8', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1521, 0, 0
                    , 330.00, 30, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1521', '8', '30', '0', '7889', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1523', '30', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:01',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5560';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1523, 0, 0
                    , 340.00, -30, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2024-02-25*340.00," WHERE transferproductid = 7890;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1523', '1', '30', '1', '7890', 'تحويل منتجات من المخزن', 'storemovementController.php', '30.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1523', '8', '30', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1523, 0, 0
                    , 340.00, 30, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1523', '8', '30', '0', '7890', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2024-02-25','0','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', '1585', '42', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:01',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5622';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1585, 0, 0
                    , 480.00, -42, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2024-02-25*480.00," WHERE transferproductid = 7891;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '1', '42', '1', '7891', 'تحويل منتجات من المخزن', 'storemovementController.php', '81.00', '39', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1585', '8', '42', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1585, 0, 0
                    , 480.00, 42, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '8', '42', '0', '7891', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2024-02-25','0','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', '1588', '39', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:01',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '77', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5625';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1588, 0, 0
                    , 410.00, -39, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2024-02-25*410.00," WHERE transferproductid = 7892;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '1', '39', '1', '7892', 'تحويل منتجات من المخزن', 'storemovementController.php', '116.00', '77', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1588', '8', '39', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1588, 0, 0
                    , 410.00, 39, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '8', '39', '0', '7892', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2024-02-25','0','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', '1531', '24', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:01',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5568';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1531, 0, 0
                    , 410.00, -24, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2024-02-25*410.00," WHERE transferproductid = 7893;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1531', '1', '24', '1', '7893', 'تحويل منتجات من المخزن', 'storemovementController.php', '48.00', '24', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1531', '8', '24', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1531, 0, 0
                    , 410.00, 24, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1531', '8', '24', '0', '7893', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2024-02-25','0','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', '1528', '16', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:01',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5565';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1528, 0, 0
                    , 360.00, -16, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2024-02-25*360.00," WHERE transferproductid = 7894;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1528', '1', '16', '1', '7894', 'تحويل منتجات من المخزن', 'storemovementController.php', '32.00', '16', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1528', '8', '16', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1528, 0, 0
                    , 360.00, 16, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1528', '8', '16', '0', '7894', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2024-02-25','0','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', '1519', '12', '2024-02-25', '1', '0','1791',null,null,'2024-02-25 20:44:01',null,'','0','hide','0','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '5556';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 1, 1519, 0, 0
                    , 210.00, -12, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2024-02-25*210.00," WHERE transferproductid = 7895;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '1', '12', '1', '7895', 'تحويل منتجات من المخزن', 'storemovementController.php', '12.00', '0', '1', '2024-02-25','0','0');
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1519', '8', '12', '1', '2024-02-25');
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2024-02-25', 8, 1519, 0, 0
                    , 210.00, 12, 0, 0, 1, '2024-02-25 20:44:01')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2024-02-25 20:44:01' ;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '8', '12', '0', '7895', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2024-02-25','0','0');
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:14:01";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:44:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:44:01', '1', 'editshow', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:17:38";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:47:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:47:38', '1', 'show', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:18:04";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:48:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:48:04', '1', 'editshowstyle2', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:19:56";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:49:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('otherstoremovementController.php', '2024-02-25 20:49:57', '1', 'show', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:20:01";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:50:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('otherstoremovementController.php', '2024-02-25 20:50:01', '1', 'show', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:20:04";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:50:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('otherstoremovementController.php', '2024-02-25 20:50:04', '1', 'show', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:20:13";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:50:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:50:13', '1', '', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:20:15";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:50:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:50:16', '1', 'show', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:20:21";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 20:50:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('storemovementController.php', '2024-02-25 20:50:21', '1', 'editshowstyle2', '156.210.11.26', '', '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 < "2024-02-25 17:58:28";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:28:28", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 21:28:29', '8', '', '197.63.228.183', '', '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 < "2024-02-25 17:58:29";
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 < "2024-02-25 17:58:31";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:28:31", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 21:28:31', '8', 'addsellBill', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:58:35";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:28:35", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 21:28:35', '8', '', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:58:37";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:28:37", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:28:37', '8', '', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:58:56";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:28:56", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:28:56', '8', 'add', '197.63.228.183', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'دفعه مصنع ليالي', '', '2500', '2024-02-25', '8', '0','-1','6','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '7890',  userid = '8' WHERE saveid = '6';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('10390.00','2500', '1', '6', 'إضافة مصروف', '4610', '7890', '2024-02-25 21:28:56', '8',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '2500', '2500', '2024-02-25', '8', '0', '0', '2024-02-25 21:28:56','اضافة اسم مصروف( دفعه مصنع ليالي )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9531', '160', '2500', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3182863', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9531', '140', '2500', '','0');
UPDATE accountstree SET name = 'خزينة محل كفر الدوار', customName = 'خزينة محل كفر الدوار', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '-1513667', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '140';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'دفعه مصنع ليالي', expensesdetails = '', expensesValue = '2500.00', expensesdate = '2024-02-25', userid = '8', conditions = '0',saveid = '6' , dailyentryid = '9531', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4610';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:58:56";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:28:56", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:28:57', '8', 'sucess', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:58:58";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:28:58", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:28:58', '8', 'show', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:59:00";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:29:00", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:29:00', '8', '', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:59:13";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:29:13", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:29:13', '8', 'add', '197.63.228.183', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'عماد حمدي', '', '2000', '2024-02-25', '8', '0','-1','6','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '5890',  userid = '8' WHERE saveid = '6';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('7890.00','2000', '1', '6', 'إضافة مصروف', '4611', '5890', '2024-02-25 21:29:13', '8',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '2000', '2000', '2024-02-25', '8', '0', '0', '2024-02-25 21:29:13','اضافة اسم مصروف( عماد حمدي )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9532', '160', '2000', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3184863', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9532', '140', '2000', '','0');
UPDATE accountstree SET name = 'خزينة محل كفر الدوار', customName = 'خزينة محل كفر الدوار', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '-1515667', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '140';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'عماد حمدي', expensesdetails = '', expensesValue = '2000.00', expensesdate = '2024-02-25', userid = '8', conditions = '0',saveid = '6' , dailyentryid = '9532', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4611';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:59:13";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:29:13", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:29:13', '8', 'sucess', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:59:15";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:29:15", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:29:15', '8', 'show', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:59:15";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:29:15", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:29:15', '8', '', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:59:39";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:29:39", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:29:39', '8', 'add', '197.63.228.183', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'مصطفي ابو محمد', '', '1150', '2024-02-25', '8', '0','-1','6','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '4740',  userid = '8' WHERE saveid = '6';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('5890.00','1150', '1', '6', 'إضافة مصروف', '4612', '4740', '2024-02-25 21:29:39', '8',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '1150', '1150', '2024-02-25', '8', '0', '0', '2024-02-25 21:29:39','اضافة اسم مصروف( مصطفي ابو محمد )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9533', '160', '1150', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3186013', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9533', '140', '1150', '','0');
UPDATE accountstree SET name = 'خزينة محل كفر الدوار', customName = 'خزينة محل كفر الدوار', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '-1516817', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '140';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'مصطفي ابو محمد', expensesdetails = '', expensesValue = '1150.00', expensesdate = '2024-02-25', userid = '8', conditions = '0',saveid = '6' , dailyentryid = '9533', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4612';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:59:40";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:29:40", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:29:40', '8', 'sucess', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:59:41";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:29:41", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:29:41', '8', 'show', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 17:59:44";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:29:44", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 21:29:44', '8', '', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:00:01";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:30:01", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:30:01', '8', '', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:00:44";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:30:44", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:30:44', '8', 'add', '197.63.228.183', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('11', 'كهرباء', '', '780', '2024-02-25', '8', '0','-1','6','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '3960',  userid = '8' WHERE saveid = '6';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('4740.00','780', '1', '6', 'إضافة مصروف', '4613', '3960', '2024-02-25 21:30:44', '8',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '780', '780', '2024-02-25', '8', '0', '0', '2024-02-25 21:30:44','اضافة اسم مصروف( كهرباء )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9534', '154', '780', '','0');
UPDATE accountstree SET name = 'ادوات كهربائيه', customName = 'ادوات كهربائيه', parent = '14', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-08', itemtype2 = '0', theValue = '6575', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '154';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9534', '140', '780', '','0');
UPDATE accountstree SET name = 'خزينة محل كفر الدوار', customName = 'خزينة محل كفر الدوار', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '-1517597', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '140';
UPDATE expenses SET expensestypeid = '11', expensesname = 'كهرباء', expensesdetails = '', expensesValue = '780.00', expensesdate = '2024-02-25', userid = '8', conditions = '0',saveid = '6' , dailyentryid = '9534', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4613';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:00:44";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:30:44", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:30:44', '8', 'sucess', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:00:46";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:30:46", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:30:46', '8', 'show', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:00:47";
UPDATE user SET loginip = "197.63.228.183", lastactivetime = "2024-02-25 21:30:47", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:30:47', '8', '', '197.63.228.183', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:03:17";
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 < "2024-02-25 18:03:39";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:33:39", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 21:33:39', '7', '', '197.192.203.121', '', '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 < "2024-02-25 18:03:39";
DROP PROCEDURE IF EXISTS clientInUse;;

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

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

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:03:42";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:33:42", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 21:33:43', '8', '', '154.183.32.177', '', '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 < "2024-02-25 18:03:43";
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 < "2024-02-25 18:03:44";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:33:44", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:33:44', '7', '', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:03:46";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:33:46", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 21:33:46', '8', '', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:03:56";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:33:56", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:33:56', '8', '', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:01";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:01", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:01', '7', 'add', '197.192.203.121', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'مسامير', '', '25', '2024-02-25', '7', '0','-1','5','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '8315',  userid = '7' WHERE saveid = '5';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('8340.00','25', '1', '5', 'إضافة مصروف', '4614', '8315', '2024-02-25 21:34:01', '7',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '25', '25', '2024-02-25', '7', '0', '0', '2024-02-25 21:34:01','اضافة اسم مصروف( مسامير )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9535', '160', '25', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3186038', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9535', '139', '25', '','0');
UPDATE accountstree SET name = 'خزينة محل عبدالله', customName = 'خزينة محل عبدالله', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2022-07-06', itemtype2 = '1', theValue = '-2521038', theOrder = '0', layingOrder = '',reportid = '0' WHERE id = '139';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'مسامير', expensesdetails = '', expensesValue = '25.00', expensesdate = '2024-02-25', userid = '7', conditions = '0',saveid = '5' , dailyentryid = '9535', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4614';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:02";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:02", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:02', '7', 'sucess', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:04";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:04", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:04', '7', 'show', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:08";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:08", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:08', '7', '', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:10";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:34:10", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:10', '8', 'add', '154.183.32.177', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'شحن نت', '', '185', '2024-02-25', '8', '0','-1','6','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '3775',  userid = '8' WHERE saveid = '6';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('3960.00','185', '1', '6', 'إضافة مصروف', '4615', '3775', '2024-02-25 21:34:10', '8',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '185', '185', '2024-02-25', '8', '0', '0', '2024-02-25 21:34:10','اضافة اسم مصروف( شحن نت )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9536', '160', '185', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3186223', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9536', '140', '185', '','0');
UPDATE accountstree SET name = 'خزينة محل كفر الدوار', customName = 'خزينة محل كفر الدوار', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '-1517782', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '140';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'شحن نت', expensesdetails = '', expensesValue = '185.00', expensesdate = '2024-02-25', userid = '8', conditions = '0',saveid = '6' , dailyentryid = '9536', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4615';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:11";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:34:11", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:11', '8', 'sucess', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:13";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:34:13", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:14', '8', 'show', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:14";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:34:14", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:14', '8', '', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:20";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:20", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:20', '7', 'add', '197.192.203.121', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'نجار', '', '250', '2024-02-25', '7', '0','-1','5','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '8065',  userid = '7' WHERE saveid = '5';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('8315.00','250', '1', '5', 'إضافة مصروف', '4616', '8065', '2024-02-25 21:34:20', '7',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '250', '250', '2024-02-25', '7', '0', '0', '2024-02-25 21:34:20','اضافة اسم مصروف( نجار )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9537', '160', '250', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3186473', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9537', '139', '250', '','0');
UPDATE accountstree SET name = 'خزينة محل عبدالله', customName = 'خزينة محل عبدالله', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2022-07-06', itemtype2 = '1', theValue = '-2521288', theOrder = '0', layingOrder = '',reportid = '0' WHERE id = '139';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'نجار', expensesdetails = '', expensesValue = '250.00', expensesdate = '2024-02-25', userid = '7', conditions = '0',saveid = '5' , dailyentryid = '9537', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4616';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:20";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:34:20", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:20', '8', 'add', '154.183.32.177', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'فطار', '', '20', '2024-02-25', '8', '0','-1','6','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '3755',  userid = '8' WHERE saveid = '6';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('3775.00','20', '1', '6', 'إضافة مصروف', '4617', '3755', '2024-02-25 21:34:20', '8',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '20', '20', '2024-02-25', '8', '0', '0', '2024-02-25 21:34:20','اضافة اسم مصروف( فطار )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9538', '160', '20', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3186493', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9538', '140', '20', '','0');
UPDATE accountstree SET name = 'خزينة محل كفر الدوار', customName = 'خزينة محل كفر الدوار', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '-1517802', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '140';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'فطار', expensesdetails = '', expensesValue = '20.00', expensesdate = '2024-02-25', userid = '8', conditions = '0',saveid = '6' , dailyentryid = '9538', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4617';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:20";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:20", deviceType = "DESKTOP" WHERE userid = 7;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:20";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:20', '7', 'sucess', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:34:21", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:21', '8', 'sucess', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:22";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:34:22", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:22', '8', '', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:22";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:23", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:23', '7', 'show', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:29";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:34:29", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:29', '8', 'add', '154.183.32.177', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'فطار', '', '20', '2024-02-25', '8', '0','-1','6','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '3735',  userid = '8' WHERE saveid = '6';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('3755.00','20', '1', '6', 'إضافة مصروف', '4618', '3735', '2024-02-25 21:34:29', '8',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '20', '20', '2024-02-25', '8', '0', '0', '2024-02-25 21:34:29','اضافة اسم مصروف( فطار )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9539', '160', '20', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3186513', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9539', '140', '20', '','0');
UPDATE accountstree SET name = 'خزينة محل كفر الدوار', customName = 'خزينة محل كفر الدوار', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-07', itemtype2 = '1', theValue = '-1517822', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '140';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'فطار', expensesdetails = '', expensesValue = '20.00', expensesdate = '2024-02-25', userid = '8', conditions = '0',saveid = '6' , dailyentryid = '9539', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4618';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:29";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:34:29", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:29', '8', 'sucess', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:30";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:34:30", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 21:34:30', '8', 'addsellBill', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:33";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:33", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:33', '7', '', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:41";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:41", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:41', '7', 'add', '197.192.203.121', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'عماد', '', '100', '2024-02-25', '7', '0','-1','5','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '7965',  userid = '7' WHERE saveid = '5';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('8065.00','100', '1', '5', 'إضافة مصروف', '4619', '7965', '2024-02-25 21:34:42', '7',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '100', '100', '2024-02-25', '7', '0', '0', '2024-02-25 21:34:42','اضافة اسم مصروف( عماد )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9540', '160', '100', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3186613', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9540', '139', '100', '','0');
UPDATE accountstree SET name = 'خزينة محل عبدالله', customName = 'خزينة محل عبدالله', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2022-07-06', itemtype2 = '1', theValue = '-2521388', theOrder = '0', layingOrder = '',reportid = '0' WHERE id = '139';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'عماد', expensesdetails = '', expensesValue = '100.00', expensesdate = '2024-02-25', userid = '7', conditions = '0',saveid = '5' , dailyentryid = '9540', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4619';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:42";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:42", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:42', '7', 'sucess', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:44";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:44", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:44', '7', 'show', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:47";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:47", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 21:34:47', '7', '', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:51";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:51", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 21:34:51', '7', 'showDetail', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:04:56";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:34:56", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:34:56', '7', '', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:05:36";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:35:36", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 21:35:36', '7', '', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:05:42";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:35:42", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 21:35:42', '7', 'showDetail', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:05:48";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:35:49", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 21:35:49', '8', '', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:06:51";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:36:51", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 21:36:51', '8', 'addsellBill', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:07:37";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:37:37", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:37:37', '8', '', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:07:42";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:37:42", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 21:37:42', '8', 'addsellBill', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:08:52";
UPDATE user SET loginip = "154.183.32.177", lastactivetime = "2024-02-25 21:38:52", deviceType = "DESKTOP" WHERE userid = 8;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:38:52', '8', '', '154.183.32.177', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:10:06";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:40:06", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 21:40:06', '7', '', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:15:18";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:45:18", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:45:18', '7', '', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:15:41";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:45:41", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:45:41', '7', 'add', '197.192.203.121', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('2', 'عماد', '', '200', '2024-02-25', '7', '0','-1','5','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '7765',  userid = '7' WHERE saveid = '5';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('7965.00','200', '1', '5', 'إضافة مصروف', '4620', '7765', '2024-02-25 21:45:41', '7',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '200', '200', '2024-02-25', '7', '0', '0', '2024-02-25 21:45:41','اضافة اسم مصروف( عماد )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9541', '145', '200', '','0');
UPDATE accountstree SET name = 'مرتبات', customName = 'مرتبات', parent = '14', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2021-11-08', itemtype2 = '0', theValue = '486670', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '145';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9541', '139', '200', '','0');
UPDATE accountstree SET name = 'خزينة محل عبدالله', customName = 'خزينة محل عبدالله', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2022-07-06', itemtype2 = '1', theValue = '-2521588', theOrder = '0', layingOrder = '',reportid = '0' WHERE id = '139';
UPDATE expenses SET expensestypeid = '2', expensesname = 'عماد', expensesdetails = '', expensesValue = '200.00', expensesdate = '2024-02-25', userid = '7', conditions = '0',saveid = '5' , dailyentryid = '9541', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4620';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:15:42";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:45:42", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:45:42', '7', 'sucess', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:15:44";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:45:44", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:45:44', '7', 'show', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:15:47";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:45:47", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:45:47', '7', '', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:16:22";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:46:23", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:46:23', '7', 'add', '197.192.203.121', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'مشال اكياس بضاعه مرتجع', '', '110', '2024-02-25', '7', '0','-1','5','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '7655',  userid = '7' WHERE saveid = '5';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('7765.00','110', '1', '5', 'إضافة مصروف', '4621', '7655', '2024-02-25 21:46:23', '7',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '110', '110', '2024-02-25', '7', '0', '0', '2024-02-25 21:46:23','اضافة اسم مصروف( مشال اكياس بضاعه مرتجع )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9542', '160', '110', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3186723', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9542', '139', '110', '','0');
UPDATE accountstree SET name = 'خزينة محل عبدالله', customName = 'خزينة محل عبدالله', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2022-07-06', itemtype2 = '1', theValue = '-2521698', theOrder = '0', layingOrder = '',reportid = '0' WHERE id = '139';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'مشال اكياس بضاعه مرتجع', expensesdetails = '', expensesValue = '110.00', expensesdate = '2024-02-25', userid = '7', conditions = '0',saveid = '5' , dailyentryid = '9542', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4621';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:16:23";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:46:23", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:46:23', '7', 'sucess', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:16:25";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:46:25", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:46:25', '7', 'show', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:16:30";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:46:31", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:46:31', '7', '', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:17:14";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:47:14", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:47:14', '7', 'add', '197.192.203.121', '', 'DESKTOP');
BEGIN;
INSERT INTO expenses (expensestypeid, expensesname, expensesdetails, expensesValue, expensesdate, userid, conditions,costcenterid,saveid,dailyentryid,bankid,bankaccountid,checknum,productid) VALUES ('-1', 'نقدي احمد العجوز للعربيه', '', '3500', '2024-02-25', '7', '0','-1','5','0','0','0','','0');
UPDATE save SET  savecurrentvalue = '4155',  userid = '7' WHERE saveid = '5';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note) VALUES ('7655.00','3500', '1', '5', 'إضافة مصروف', '4622', '4155', '2024-02-25 21:47:14', '7',  'expensesController.php','0','');
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid) VALUES ( '3500', '3500', '2024-02-25', '7', '0', '0', '2024-02-25 21:47:14','اضافة اسم مصروف( نقدي احمد العجوز للعربيه )','1','0','-1');
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9543', '160', '3500', '','0');
UPDATE accountstree SET name = '', customName = '', parent = '10', itemtype = '1', itemfrom = '0', notes = '', del = '1', userid = '1', mydate = '2021-12-01', itemtype2 = '1', theValue = '-3190223', theOrder = '0', layingOrder = '',reportid = '2' WHERE id = '160';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9543', '139', '3500', '','0');
UPDATE accountstree SET name = 'خزينة محل عبدالله', customName = 'خزينة محل عبدالله', parent = '20', itemtype = '3', itemfrom = '0', notes = '', del = '0', userid = '1', mydate = '2022-07-06', itemtype2 = '1', theValue = '-2525198', theOrder = '0', layingOrder = '',reportid = '0' WHERE id = '139';
UPDATE expenses SET expensestypeid = '-1', expensesname = 'نقدي احمد العجوز للعربيه', expensesdetails = '', expensesValue = '3500.00', expensesdate = '2024-02-25', userid = '7', conditions = '0',saveid = '5' , dailyentryid = '9543', bankid = '0', bankaccountid = '0', checknum = '', productid = '0' WHERE expensesid = '4622';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:17:15";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:47:15", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:47:15', '7', 'sucess', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:17:17";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:47:17", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('expensesController.php', '2024-02-25 21:47:17', '7', 'show', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:17:21";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:47:21", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 21:47:21', '7', '', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:17:24";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:47:24", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('savedailyController.php', '2024-02-25 21:47:24', '7', 'showDetail', '197.192.203.121', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:26:29";
UPDATE user SET loginip = "197.192.203.121", lastactivetime = "2024-02-25 21:56:29", deviceType = "DESKTOP" WHERE userid = 7;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('sellbillController.php', '2024-02-25 21:56:29', '7', 'addsellBill', '197.192.203.121', '', '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 < "2024-02-25 18:38:00";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 22:08:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('index.php', '2024-02-25 22:08:00', '1', '', '156.210.11.26', '', '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 < "2024-02-25 18:38:01";
DROP PROCEDURE IF EXISTS clientInUse;;

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

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

END

;
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:38:16";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 22:08:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2024-02-25 22:08:16', '1', '', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:46:57";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 22:16:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2024-02-25 22:16:58', '1', 'add', '156.210.11.26', '', 'DESKTOP');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4139';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('227', '8', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4129';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1128', '8', '7', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4106';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1125', '8', '4', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '4.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4105';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1122', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4104';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1124', '8', '25', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '25.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4103';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1123', '8', '6', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '6.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4081';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1119', '8', '14', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '14.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4069';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1118', '8', '6', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '6.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4067';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('579', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4066';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('602', '8', '17', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '17.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4065';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1113', '8', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4064';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1112', '8', '13', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '13.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4063';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1114', '8', '7', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4002';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('623', '8', '18', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '18.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '4001';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('25', '8', '6', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '6.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3999';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('233', '8', '14', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '14.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3998';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('656', '8', '4', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '4.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3988';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('765', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3984';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1111', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3957';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1109', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3956';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1108', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3955';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1106', '8', '6', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '6.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3953';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1104', '8', '51', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '51.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3892';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1090', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3871';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1094', '8', '17', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '17.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3868';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1091', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3867';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1078', '8', '9', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '9.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3807';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1074', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3783';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1069', '8', '35', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '35.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3782';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1068', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3781';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1067', '8', '9', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '9.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3780';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1064', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3778';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1063', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3734';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('620', '8', '36', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '36.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3727';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1062', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3717';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1060', '8', '24', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-24.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3646';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1047', '8', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3630';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('994', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3564';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1021', '8', '12', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '12.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3521';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1014', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3520';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1018', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3519';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1017', '8', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3518';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1019', '8', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3493';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1015', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3491';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('946', '8', '21', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '21.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3464';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('467', '8', '13', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '13.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3413';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('995', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3361';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('580', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3360';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('575', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3347';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('945', '8', '19', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '19.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3333';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('978', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3332';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('941', '8', '9', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '9.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3292';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('799', '8', '13', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '13.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3291';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('798', '8', '9', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '9.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3289';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('976', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3286';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('181', '8', '23', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '23.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3285';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('681', '8', '25', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '25.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3229';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('527', '8', '16', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '16.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3228';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('536', '8', '16', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '16.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3227';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('26', '8', '12', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '12.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3226';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('967', '8', '11', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '11.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3225';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('966', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3183';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('956', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3169';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('958', '8', '7', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3167';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('964', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3166';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('959', '8', '22', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '22.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3165';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('957', '8', '13', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '13.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3102';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('938', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3099';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('949', '8', '7', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3096';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('937', '8', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3094';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('944', '8', '4', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '4.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3093';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('375', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3092';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('806', '8', '20', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '20.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3090';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('739', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3087';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('415', '8', '6', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '6.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3085';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('438', '8', '7', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '3084';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('950', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2834';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('873', '8', '0', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية لم يتغير', 'inventoryController.php', '0.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2733';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('577', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2732';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('853', '8', '11', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '11.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2731';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('852', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2725';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('366', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2724';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('360', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2693';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('792', '8', '6', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '6.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2471';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('813', '8', '2', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2440';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('809', '8', '9', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '9.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2438';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('801', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2437';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('800', '8', '7', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2411';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('748', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2410';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('747', '8', '9', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '9.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2053';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('569', '8', '37', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '37.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2051';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('669', '8', '12', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '12.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2049';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('572', '8', '2', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2048';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('492', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2047';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('570', '8', '14', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '14.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2046';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('637', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2044';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('638', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2043';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('658', '8', '42', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '42.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2041';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('634', '8', '17', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '17.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2038';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('647', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2037';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('431', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2036';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('643', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2035';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('676', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2034';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('645', '8', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2032';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('666', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2031';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('641', '8', '17', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '17.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2030';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('639', '8', '11', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '11.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2029';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('649', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '2027';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('436', '8', '13', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '13.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1913';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('611', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1890';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('617', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1878';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('392', '8', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1742';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('356', '8', '6', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '6.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1735';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('365', '8', '18', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '18.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1733';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('372', '8', '12', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '12.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1730';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('335', '8', '8', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '8.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1729';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('339', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1728';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('374', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1676';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('538', '8', '26', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '26.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1675';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('537', '8', '20', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '20.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1668';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('590', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1558';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('586', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1526';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('12', '8', '2', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1520';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('561', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1519';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('565', '8', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1478';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('555', '8', '1', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1210';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('217', '8', '32', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '32.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1208';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('518', '8', '9', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '9.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1206';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('516', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1196';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('466', '8', '17', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '17.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1191';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('128', '8', '6', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '6.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1180';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('385', '8', '2', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1178';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('383', '8', '7', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1172';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('208', '8', '7', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1168';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('7', '8', '6', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '6.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1158';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('112', '8', '11', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '11.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1154';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('107', '8', '16', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '16.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1142';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '8', '17', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '17.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1138';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('86', '8', '14', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '14.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1132';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('80', '8', '2', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1130';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('77', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1129';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('5', '8', '21', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '21.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1128';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('75', '8', '2', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1121';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('69', '8', '15', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '15.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1119';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('67', '8', '4', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '4.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1115';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('63', '8', '18', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '18.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1113';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('61', '8', '11', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '11.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1104';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('52', '8', '3', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '-3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1098';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('3', '8', '3', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '3.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1097';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('24', '8', '11', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '11.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1096';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('23', '8', '7', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1094';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('22', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1091';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('21', '8', '6', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '6.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1087';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2', '8', '8', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '8.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1085';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('18', '8', '16', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '16.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1084';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('17', '8', '7', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1083';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('15', '8', '7', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1082';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('14', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1080';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('39', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1079';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('38', '8', '4', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '4.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1078';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('37', '8', '5', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '5.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1076';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('35', '8', '4', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '4.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1072';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('31', '8', '1', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '1.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1070';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('10', '8', '7', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '7.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1069';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1', '8', '31', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '31.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1066';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('311', '8', '2', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '2.00', '0', '1', '2024-02-25','0','0');
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2024-02-25' WHERE storedetailid = '1063';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('90', '8', '24', '1', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالنقص', 'inventoryController.php', '24.00', '0', '1', '2024-02-25','0','0');
UPDATE user SET loginip = "" WHERE lastactivetime < "2024-02-25 18:47:15";
UPDATE user SET loginip = "156.210.11.26", lastactivetime = "2024-02-25 22:17:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType) VALUES ('inventoryController.php', '2024-02-25 22:17:15', '1', 'show', '156.210.11.26', '', 'DESKTOP');
UPDATE user SET loginip = "" WHERE userid = 7;
